PDA

Click to See Complete Forum and Search --> : Picture


neb84
Nov 6th, 1999, 05:59 AM
I have two questions:
1) is there a way that i can store a pixel from a picture box picture and place it into another picture box?
2)how can i save a picture box as a *.bmp

Aaron Young
Nov 6th, 1999, 12:30 PM
You can use the Point Method to Get the Color of a Pixel in a Picturebox and the PSet Method to Set a Pixel Color of a Picturebox, eg.

Picture2.PSet(X, Y), Picture1.Point(X, Y) 'Copies a Pixel From Picture1 to Picture2

To Save an Image in a Picturebox as a Bitmap, use the SavePicture Function, eg.

SavePicture Picture1.Image, "C:\BMPS\MyBmp.bmp" 'Save the Image in Picture1 to the File "C:\BMPS\MyBmp.bmp" as a Bitmap.


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net