*sigh*Another help thread, I need help for my paint proggy

Discussion in 'Archives' started by Blupig, Jul 6, 2007.

*sigh*Another help thread, I need help for my paint proggy
  1. Unread #1 - Jul 6, 2007 at 10:17 PM
  2. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    *sigh*Another help thread, I need help for my paint proggy

    I'm making a small paint program, I already got Jazz's line+rectangle draw functions *thanks* which I will mod slightly to be a tool in my program.
    What I would like is a function, or a complete code/tut on saving bitmaps. Doesn't have to be bmp, all I want is an image format (widely used) and can be openned in my program again or in another program like MS Paint.

    So far I have a brush size tool, an eraser tool, a color preview window, color selection using RGB (i will update it cool to colordialog), and the draw window. If anyone wants to help me with my program aside from the saving part, post your code here and I'll give you credit when I'm done ;) All help is welcome and thanks, everyone!

    Lol, my app's name is really quite witty, it's RGBrush xD
     
  3. Unread #2 - Jul 6, 2007 at 11:05 PM
  4. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    *sigh*Another help thread, I need help for my paint proggy

    lol, assuming you have the graphical editing going on in a picturebox (which is where most "painting" happens you can use


    Code:
    savepicture(picturebox,filename)
    and if you want to use a common dialog control to allow the user to save it where they please:


    CD is the common dialog control, and picture1 is a picturebox where your picture is that you want to save

    Code:
        On Error GoTo err:
        CD.Filter = "Bitmap files | *.bmp"
        CD.ShowSave
        SavePicture Picture1, CD.FileName
    Exit Sub
    err:
        'cancel was pressed
    End Sub
    
     
  5. Unread #3 - Jul 11, 2007 at 7:31 PM
  6. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    *sigh*Another help thread, I need help for my paint proggy

    You never cease to amaze me, Jazz.
     
< pen post in thread | pen post in threD >

Users viewing this thread
1 guest


 
 
Adblock breaks this site