Results 1 to 6 of 6
  1. #1
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired

    Whats the best method for drawing graphics and saving it

    I was wondering whats the best way to draw graphics and then being able to save it.

    I noticed that graphics drawn don't have a save method, so now I have to figure out how to save it as well, which I don't know how to do.
    I think I explained this good enough

    I'm talking about if you wanna draw graphics on a control and then save it as a image file.
    Last edited by DawgiiStylz; 09-03-2012 at 01:31 AM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,662
    My Mood
    Breezy
    Draw graphics and save them?

    Code:
    Dim bmp As New Bitmap(Width, Height)
    Dim g As Graphics = Graphics.FromImage(bmp)
    ' Draw crap to graphics object.
    g.DrawRectangle(Pens.Red, 0, 0, 100, 200)
    ' Dispose the graphics when NO LONGER needed.
    g.Dispose()
    ' Save the image
    bmp.Save("blah.png", ImageFormat.Png)
    ' Dispose the Bitmap, don't need it anymore
    bmp.Dispose()
    Last edited by master131; 09-03-2012 at 03:42 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following 3 Users Say Thank You to master131 For This Useful Post:

    'Bruno (09-03-2012),DawgiiStylz (09-03-2012),Paul (09-03-2012)

  4. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Let us know how that worked out.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  5. #4
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Not really, but Ima make that a lil more advance to match my code.

  6. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,662
    My Mood
    Breezy
    What exactly are you trying to code?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  7. #6
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    I don't need help anymore. You can close.
    Quote Originally Posted by master131 View Post
    What exactly are you trying to code?

Similar Threads

  1. Whats the best injector for XP right now?
    By Chinnaa in forum Combat Arms Help
    Replies: 1
    Last Post: 09-12-2010, 04:01 PM
  2. Whats the best Injector for Windows XP
    By Chinnaa in forum Combat Arms Help
    Replies: 6
    Last Post: 06-25-2010, 10:33 AM
  3. What is the best compiler for C++?
    By ip_ban in forum C++/C Programming
    Replies: 2
    Last Post: 07-26-2008, 04:29 PM
  4. Whats the best place to get free brushes for photoshop?
    By thechewu in forum Art & Graphic Design
    Replies: 9
    Last Post: 08-08-2007, 08:19 PM