Link to home
Start Free TrialLog in
Avatar of Crawler77
Crawler77

asked on

Read a bmp file in VBA

How can I read a BMP file's colors pixel by pixel from VBA ?

Only VBA answers pls.

Thanks in advance...
Avatar of John Earnshaw
John Earnshaw
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to declare and use Win API Functions "GetPixel" "SetPixel"
See here: http://msdn.microsoft.com/en-us/library/dd183385 for a full list of bitmap functions

pinvoke.net is a good place to find API declarations: http://www.pinvoke.net/default.aspx/gdi32.getpixel

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial