Click here to Skip to main content
15,885,078 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Trying to create a simple DIB from performing a GlobalAlloc on a size of data, locking the data sing GlobalLock and returning a handle to the data, casted to a BITMAPINFO type.

 Using a loop to fill the bit data.

The purpose of this is to create a test for an app that captures images from an ActiveX control.  I need a test app that can create a "dummy image" that can be used as a place holder.  So I was trying to come up with a simple method that can create an image from scratch

 

Is that feasisble?

Posted
Updated 23-Nov-09 9:50am
v2

I'd create a DIBSection and copy the data in from there, assuming you're saying you have the data to copy in.  If you don't, what is the point of this ?

 
Share this answer
 
Sounds like you want to manually recreate a bitmap at the byte level. It's feasible; I once did that in high school when working with QuickBasic. You just need to review the file format (which is really simple) and get to coding: http://en.wikipedia.org/wiki/BMP_file_format
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900