|
-
Nov 17th, 2006, 08:21 AM
#1
Thread Starter
Lively Member
[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
-
Nov 17th, 2006, 08:24 AM
#2
Re: VB Paint Program
Welcome to VBF 
Here's one...
-
Nov 17th, 2006, 08:44 AM
#3
Thread Starter
Lively Member
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?
-
Nov 17th, 2006, 08:54 AM
#4
New Member
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 :
-
Nov 17th, 2006, 08:58 AM
#5
Re: VB Paint Program
It has a few:
VB Code:
'both require Picture1 PictureBox
Picture1.Picture = LoadPicture ("c:\old.bmp") 'to load it from file
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...
-
Nov 17th, 2006, 09:19 AM
#6
Thread Starter
Lively Member
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.
-
Nov 17th, 2006, 09:23 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|