Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Bitmap Data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

emanuela1111
Neophyte

2 Posts

Posted - Sep 17 2003 :  11:18:04 AM  Show Profile  Reply with Quote
I'd like to realize a VB program that extracts the pixel map from a two color bitmap picture and prints on screen the sequence: pixel coordinates-pixel colour.
I looked at the code of your program BMPINFO.exe found on this site, but I couldn't find the way to modify the GetPixelColour
function to get my purpose, can you Help me, Please?

I noticed that BMPINFO doesn't work properly if the input picture is a Monochrome Bitmap; using a 3X2 pixel Monochrome bitmap made using Paint (like the one I attached), the Colour Table shows the two colors
black and white, but the data table shows only black.

Thank you in advance
Bye
Emanuela

Eric Coleman
Gladiator

USA
811 Posts

Posted - Sep 22 2003 :  08:23:00 AM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
aren't the bits packed into a byte? If you had a monochrome image 8 pixels wide, then the first byte contains all 8 bits to describe the pixels on that row, then it would be followed by 3 bytes to achieve a 32bit alignment.

Go to Top of Page

emanuela1111
Neophyte

2 Posts

Posted - Sep 30 2003 :  07:12:40 AM  Show Profile  Reply with Quote
Thank you very much :)
Bye

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.