Results 1 to 7 of 7

Thread: [RESOLVED] VB Paint Program

  1. #1

    Thread Starter
    Lively Member Brian M.'s Avatar
    Join Date
    Nov 2006
    Location
    Moberly MO
    Posts
    94

    Resolved [RESOLVED] VB Paint Program

    Would it be possible to create a type of paint program with vb 6.0? I want to write a coloring book for my nephews. Just a window that displays a pic that can be colored on with some color crayon buttons to change the color of the pencil. If anyone has any links to tutorials that would show me some steps, I'd appreciate it. I can program with basic pretty good, I have already written a coloring book with the Just BASIC compiler, but I'd like to port it to vb. I use VB 6.0 enterprise edition, but unfourtunatly the copy that my buddy gave me is sans help files, so I have to wing it a bit until I get more comfortable with the new programming enviroment.
    Last edited by Brian M.; Nov 17th, 2006 at 08:38 AM. Reason: misspelled

  2. #2

  3. #3

    Thread Starter
    Lively Member Brian M.'s Avatar
    Join Date
    Nov 2006
    Location
    Moberly MO
    Posts
    94

    Re: VB Paint Program

    Thanks. Its a little complicated, but there is some usefull stuff in it. Does vb have any graphic commands like pset, drawbmp, getbmp or the like?

  4. #4
    New Member JF3000's Avatar
    Join Date
    Nov 2006
    Location
    Gold Coast - Australia
    Posts
    6

    Re: VB Paint Program

    here is another :

    Code:
    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=47566&lngWId=1
    Do you have a website? Please add it to my database :

    Code:
    www.jf3000.com

  5. #5
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: VB Paint Program

    It has a few:
    VB Code:
    1. 'both require Picture1 PictureBox
    2.  
    3. Picture1.Picture = LoadPicture ("c:\old.bmp") 'to load it from file
    4. SavePicture Picture1.Picture, "c:\new.bmp" 'to save it to file
    When pic is loaded into a PictureBox then you can pretty much do everything with the PictureBox object (go to menu View>>Object Browser and type PictureBox - it will display all methods, functions, properties... and their description of the PictureBox class).

    There are also few APIs (GetPixel, SetPixel...). Check AllAPI.net for those

    Btw... there's a "restriction" regarding the quality of images you can work with within VB. Only 24-bits... gulp! After all, VB is 10+ years old...

  6. #6

    Thread Starter
    Lively Member Brian M.'s Avatar
    Join Date
    Nov 2006
    Location
    Moberly MO
    Posts
    94

    Re: VB Paint Program

    Thanks for the paint program and link to allapi.net. They both were helpfull. And the api guide I found on that link will be very usefull.

  7. #7
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: VB Paint Program

    It's the kind of app that shouldn't be missing on any VB programmer's machine Unless, you know all API declarations

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width