Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored

    How to Edit an Image

    Ok, so lets say you have an image, and you has a text box. You insert text in the textbox. How would you make it appear on the picture?

    My idea was to just put a label over it, but then you can't save it with the text on it...

  2. #2
    Omar the Sandnigger's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    991
    Reputation
    2
    Thanks
    20
    My Mood
    Devilish
    Microsoft made something you can import and you have all the features that are in paint.
    I don't know what ones tho.

  3. #3
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    GDI......?



  4. #4
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Blubb1337 View Post
    GDI......?
    No.. the program itself has to work on the actual image, and produce it as one image.

  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    herp herp:

    [highlight=vb.net]
    Private Sub DrawStringToPicture(ByVal thePicture As PictureBox, ByVal theString As String, ByVal theLocation As Point, ByVal theColor As Color, ByVal theFont As Font)
    Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
    g.DrawString(theString, theFont, New SolidBrush(theColor), theLocation)
    End Using
    End Sub
    [/highlight]

    If you can't figure out how to use it...Idk.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #6
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Jason View Post
    herp herp:

    [highlight=vb.net]
    Private Sub DrawStringToPicture(ByVal thePicture As PictureBox, ByVal theString As String, ByVal theLocation As Point, ByVal theColor As Color, ByVal theFont As Font)
    Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
    g.DrawString(theString, theFont, New SolidBrush(theColor), theLocation)
    End Using
    End Sub
    [/highlight]

    If you can't figure out how to use it...Idk.
    That would probably work, though, it has to equal textbox1.text

  7. #7
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by PepsiXHacker View Post


    That would probably work, though, it has to equal textbox1.text
    -.-

    [highlight="VB.Net"]Private Sub DrawStringToPicture(ByVal thePicture As PictureBox, ByVal theString As String, ByVal theLocation As Point, ByVal theColor As Color, ByVal theFont As Font)
    Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
    g.DrawString(Textbox1.Text, theFont, New SolidBrush(theColor), theLocation)
    End Using
    End Sub [/highlight]



  8. The Following User Says Thank You to Blubb1337 For This Useful Post:

    Cryptonic (05-03-2011)

  9. #8
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Blubb1337 View Post
    -.-

    [highlight="VB.Net"]Private Sub DrawStringToPicture(ByVal thePicture As PictureBox, ByVal theString As String, ByVal theLocation As Point, ByVal theColor As Color, ByVal theFont As Font)
    Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
    g.DrawString(Textbox1.Text, theFont, New SolidBrush(theColor), theLocation)
    End Using
    End Sub [/highlight]
    Wait, for the font, i forget how to insert...

    i think vb 06 was

    font = "times new roman" or font.timesnewroman or sumthin.

  10. #9
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Blubb1337 View Post
    -.-

    [highlight="VB.Net"]Private Sub DrawStringToPicture(ByVal thePicture As PictureBox, ByVal theString As String, ByVal theLocation As Point, ByVal theColor As Color, ByVal theFont As Font)
    Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
    g.DrawString(Textbox1.Text, theFont, New SolidBrush(theColor), theLocation)
    End Using
    End Sub [/highlight]
    There's a "theString" param for a reason nubdick.

    Just call it with DrawStringToPicture(PictureBox1, TextBox1.Text.....etc)

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  11. #10
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Jason View Post


    There's a "theString" param for a reason nubdick.

    Just call it with DrawStringToPicture(PictureBox1, TextBox1.Text.....etc)
    Ide rather use a way i understand then what i dont understant.

  12. #11
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by PepsiXHacker View Post


    Ide rather use a way i understand then what i dont understant.
    If you don't understand how to pass a parameter to a function you're really fucked

    Don't tell me you've never used a messagebox.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  13. The Following User Says Thank You to Jason For This Useful Post:

    Blubb1337 (05-03-2011)

  14. #12
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by Jason View Post


    If you don't understand how to pass a parameter to a function you're really fucked

    Don't tell me you've never used a messagebox.
    Of course ive used a message box. But i don't get what your getting at.

  15. #13
    alvaritos's Avatar
    Join Date
    May 2008
    Gender
    male
    Posts
    234
    Reputation
    9
    Thanks
    73
    My Mood
    Amazed
    And How I set the Location :_p?

  16. #14
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by alvaritos View Post
    And How I set the Location :_p?
    it think somethin like 15, 45

  17. #15
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Sweet christ. LOOK AT THE GODFORESAKEN METHOD SIGNATURE.

    There's parameters to control pretty much everything about the drawString. You can set what to write, where to write it, what font to write it in, and what color to write it in, WITHOUT HARDCODING THE METHOD BODY.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

Page 1 of 3 123 LastLast