p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Beginning VB 6 (http://p2p.wrox.com/forumdisplay.php?f=75)
-   -   VB and BMP file manipulation. (http://p2p.wrox.com/showthread.php?t=26291)

xorprime March 2nd, 2005 10:11 AM

VB and BMP file manipulation.

Hi All,
I am looking at development of programs to programatically manipulate BMP files. The operations would involve pixel level access of the BMP files and deductions being drawn from the data like color of the pixels and actual size occupied by say a color in the entire BMP. I am relatively new to this aspect of Visual Basic and would really appretiate any feedback on the capability to implement such a thing in Visual Basic 6.0. If any of you have had experience in such an application on an alternative platform or are of the opinion that this application could be better implemented in a better way with more features in some other platform please let me know so that I may set of in the right direction from the incept.
Thanking you all in advance,

marcostraf March 2nd, 2005 02:59 PM

VB does not have native access to bmp file, thus you have to use the standard API to read it. Actually, what you need is just the API definition of the bmp header file, then you can read the header, colormap (if present) and image data using the standard VB file access (Open, Get and Close). I had to do the same and is pretty easy. Look in the MSDN documentation for
From there you can get the description of the bmp file
Good luck!

All times are GMT -4. The time now is 02:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.