PRB: PRB: "Error 481: Invalid Picture" Err Viewing BMP FileID: Q216205
|
Bitmaps created using Win98 Imaging components, such as Imaging for Windows (Win98) or IMGEDIT.OCX, create a BMP that cannot be read in Win95 or NT4 using MSPAINT.EXE or the Visual Basic PictureBox control.
You would receive the folling error message:
Error 481: Invalid Picture When Viewing BMP Created Using Kodak Imaging in Win98
The Win98 Imaging components save out the bitmaps using the v5.0 BITMAPINFOHEADER structure.
Following is the VC++ BITMAPINFOHEADER v5.0 structure:
typedef struct {
DWORD bV5Size;
LONG bV5Width;
LONG bV5Height;
WORD bV5Planes;
WORD bV5BitCount;
DWORD bV5Compression;
DWORD bV5SizeImage;
LONG bV5XPelsPerMeter;
LONG bV5YPelsPerMeter;
DWORD bV5ClrUsed;
DWORD bV5ClrImportant;
DWORD bV5RedMask;
DWORD bV5GreenMask;
DWORD bV5BlueMask;
DWORD bV5AlphaMask;
DWORD bV5CSType;
CIEXYZTRIPLE bV5Endpoints;
DWORD bV5GammaRed;
DWORD bV5GammaGreen;
DWORD bV5GammaBlue;
DWORD bV5Intent;
DWORD bV5ProfileData;
DWORD bV5ProfileSize;
DWORD bV5Reserved;
} BITMAPV5HEADER, FAR *LPBITMAPV5HEADER, *PBITMAPV5HEADER;
There are three workarounds for this problem:
This problem has been reported as a bug to Eastman Kodak, makers of the Imaging controls.
Additional query words:
Keywords : kb3rdparty kbBitmap kbVBp kbVBp400 kbVBp500 kbVBp600 kbWinOS98 kbGrpVB
Version : WINDOWS:4.0,5.0,6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: June 14, 1999