|
-
Apr 4th, 2008, 10:58 AM
#1
Thread Starter
Hyperactive Member
point
if I have a picturebox, I can do picturebox.point to get the colour of a certain place in the picture, but say if I just had a picture stored as an stdpicture, How could I get the colour of a certain place in the picture? I cant just do stdpicture.point.
-
Apr 4th, 2008, 11:02 AM
#2
Re: point
You are correct. The pixel color you want can be obtained two different ways
1. Load or daw the picture into a DC (i.e., PictureBox) then use VB's Point or GetPixel API to retrieve the color
2. Load the picture in a DIB (windows bitmap storage object), then retrieve the pixel via GetDIBits or other similar methods.
The stdPicture object is simply a container for the image. That object has very few methods/procedures.
-
Apr 4th, 2008, 11:03 AM
#3
Thread Starter
Hyperactive Member
Re: point
what is stdpicture.render then?
-
Apr 4th, 2008, 11:08 AM
#4
Re: point
 Originally Posted by Kaimonington
what is stdpicture.render then?
It is a function to draw the image within the stdPicture to a destination DC. That niffty function emulates many API functions (depending on what image type is in stdPicture): BitBlt, StretchBlt, DrawIcon, DrawIconEx and double BitBlts for transparent gifs -- once for mask, once for color.
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
|