Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2005, 10:11 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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,
-Xorprime.
 
Old March 2nd, 2005, 02:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
BITMAPFILEHEADER and
BITMAPINFOHEADER
From there you can get the description of the bmp file
Good luck!
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
convert Image(jpeg/bmp,etc) file into binary forma venkat2reddy C# 2 September 14th, 2010 07:58 AM
textureing by a bmp file. jopeter C# 0 December 23rd, 2007 07:08 PM
php form for up-loading a gif., jpg, or bmp file Wilbon Beginning PHP 2 January 8th, 2006 10:32 AM
String Manipulation with VB 6 Jay5817 Beginning VB 6 3 January 16th, 2004 02:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.