|
-
Jan 24th, 2011, 04:07 PM
#11
Re: [vb6]Alpha Image Control (PNG, AniGIFs, TIFF, & more)
Thanx Petersen. Now I can see if my educated guesses will work. I won't be able to download til later tonight when I get home from work. I already have 16bpp routines for TGA & ICO that should work with PCX, more or less.
Edited: Snaggd the image, haven't looked at it yet.
Ah, that was quick. It isn't a 16bpp image. It is 4bpp. The format says 4bpp x 4planes, but there isn't enough pixels to make it 16bpp. It is really 1bpp x 4planes. If you change the BitsPerPixel field in the image format, any viewer that can render 1bppx4planes would be able to load it. Simple math helps prove it.
The image reports 80 bytes per plane and has 4 planes. That equates to 320 bytes per line.
The image is 640 pixels wide. At 2 bytes per pixel (16bpp), the image would need 640*2 bytes or 1280 total bytes.
But at 4bpp (2 pixels per byte), the image would need 640\2 bytes (320 bytes) which is what exists in the format.
Last edited by LaVolpe; Jan 24th, 2011 at 10:43 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|