Fo graphic experts only!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have been using Access for 5 years now, and recently ran into a snag! A
new project calls for a new challenge! I am familliar with VBA coding.

Basically I need to read the color of every pixel in a graphic stored as an
OLE object field. Therefore I would like to know if such a commad exists.
However, I do not want a 150 line example for this! I just would like the
basic command to accomplish this task (Read in a pixel from an OLE graphic
picture). If this requires 2 or three lines, then thats fine!

I can then later work around with loops to read in all the pixels and store
them in an array.

Thanking you in advcance for any help on this!
 
No problem at all. Here's your three lines of code.

Public Function ReadOLEpixel() as long
MsgBox "Sorry...no can do!"
End Function


Alternatively you could programmatically save the contents of the OLE
field to disk as a Bitmap image, Load the Bitmap into memory, and then
use the pertinent GDI calls to read the individual pixels. But this
would result in much more than a few lines of code.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top