Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: HELP WITH PRINTING MARGINS PLS READ! Pin
vbbeg13-Jan-07 6:12
vbbeg13-Jan-07 6:12 
GeneralRe: HELP WITH PRINTING MARGINS PLS READ! Pin
Dave Kreskowiak15-Jan-07 5:36
mveDave Kreskowiak15-Jan-07 5:36 
GeneralRe: HELP WITH PRINTING MARGINS PLS READ! Pin
vbbeg16-Jan-07 3:24
vbbeg16-Jan-07 3:24 
QuestionAnyone know any good resources on developing right-click/context menus for form controls??? Pin
Joey Picerno11-Jan-07 5:41
Joey Picerno11-Jan-07 5:41 
AnswerRe: Anyone know any good resources on developing right-click/context menus for form controls??? Pin
Kschuler11-Jan-07 9:07
Kschuler11-Jan-07 9:07 
QuestionAnother question about Graphics.DrawString Pin
Savas Cilve11-Jan-07 4:10
Savas Cilve11-Jan-07 4:10 
AnswerRe: Another question about Graphics.DrawString Pin
Dave Kreskowiak11-Jan-07 4:15
mveDave Kreskowiak11-Jan-07 4:15 
GeneralRe: Another question about Graphics.DrawString Pin
Savas Cilve11-Jan-07 4:23
Savas Cilve11-Jan-07 4:23 
That's my entire code for the writing string.
<br />
For Each img As Image In _images<br />
  Dim changed As Boolean = False<br />
  Dim f As New Font(FontFamily.GenericSerif, 35.0F, FontStyle.Regular, GraphicsUnit.Point)<br />
  Dim graph As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(img)<br />
  Dim pi() As Drawing.Imaging.PropertyItem = img.PropertyItems<br />
  Dim bytes() As Byte<br />
  Dim enc As New System.Text.UTF8Encoding<br />
<br />
  For Each pItem As Drawing.Imaging.PropertyItem In pi<br />
    If pItem.Id = 36867 Then<br />
      bytes = pItem.Value<br />
      graph.DrawString(enc.GetString(bytes), f, Brushes.Yellow, CSng(img.Width) - 400.0F, CSng(img.Height) - 50.0F)<br />
      changed = True<br />
      Exit For<br />
    End If<br />
  Next<br />
<br />
  If changed Then<br />
    img.Save(_imagesHash.Item(img).ToString() & ".jpg")<br />
  End If<br />
Next<br />


and I'm storing images and their paths in the hashtable.
oh last thing: When the image saved its size decreasing from 2mb to 250kb Smile | :)

Savas Cilve
GeneralRe: Another question about Graphics.DrawString Pin
Dave Kreskowiak11-Jan-07 5:37
mveDave Kreskowiak11-Jan-07 5:37 
GeneralRe: Another question about Graphics.DrawString Pin
Savas Cilve11-Jan-07 6:08
Savas Cilve11-Jan-07 6:08 
QuestionInsert File Pin
jds120711-Jan-07 3:56
jds120711-Jan-07 3:56 
QuestionWhat??? Pin
CPallini11-Jan-07 4:06
mveCPallini11-Jan-07 4:06 
AnswerRe: Insert File Pin
Dave Kreskowiak11-Jan-07 4:12
mveDave Kreskowiak11-Jan-07 4:12 
GeneralRe: Insert File Pin
Colin Angus Mackay11-Jan-07 4:51
Colin Angus Mackay11-Jan-07 4:51 
GeneralRe: Insert File Pin
Dave Kreskowiak11-Jan-07 4:56
mveDave Kreskowiak11-Jan-07 4:56 
GeneralRe: Insert File Pin
jds120711-Jan-07 6:01
jds120711-Jan-07 6:01 
GeneralRe: Insert File Pin
Dave Kreskowiak11-Jan-07 6:52
mveDave Kreskowiak11-Jan-07 6:52 
GeneralRe: Insert File Pin
jds120711-Jan-07 7:25
jds120711-Jan-07 7:25 
QuestionWhat does it return? Pin
ashwath197911-Jan-07 3:48
ashwath197911-Jan-07 3:48 
AnswerRe: What does it return? Pin
CPallini11-Jan-07 3:59
mveCPallini11-Jan-07 3:59 
QuestionWhat does it return? Pin
ashwath197911-Jan-07 3:47
ashwath197911-Jan-07 3:47 
QuestionVB.Net Project making Pin
Mayuri Gaikwad11-Jan-07 2:44
Mayuri Gaikwad11-Jan-07 2:44 
AnswerRe: VB.Net Project making Pin
Dave Kreskowiak11-Jan-07 3:11
mveDave Kreskowiak11-Jan-07 3:11 
QuestionI am converting a ActiveX(DSO Framer)control into .Net assembly Pin
indian14311-Jan-07 1:53
indian14311-Jan-07 1:53 
AnswerRe: I am converting a ActiveX(DSO Framer)control into .Net assembly [modified] Pin
Dave Kreskowiak11-Jan-07 3:11
mveDave Kreskowiak11-Jan-07 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.