There are functions for handling non RGB DIBs. You can load and save non RGB images in device independent bitmap format, TIFF format, etc. You can use the LoadNonRGBDIB, SaveNonRGBDIB, GetDIBColorSpace or GetBMPColorSpace functions from the BiDIB DLL/OCX and SaveNonRGBDIBInTiffFile, LoadNonRGBTiffIntoDIB or GetTiffColorSpace from BiTiff DLL/OCX for handling non RGB images.
[C++]
/* Load a non RGB DIB */
#include “BiDIB.h”
HDIB hDib;
hDib = LoadNonRGBDIB(“C:\\Images\\Test.bmp”);
if (!hDib)
{
// Error
}
[VB]
‘ Load a non RGB DIB
Dim hDib as Long
Dim BiDIBobj as Object
Set BiDIBobj = CreateObject("BIDIB.BIDIBCtrl.1")
hDib = LoadNonRGBDIB(“C:\Images\Test.bmp”)
Set BiDIBobj = Nothing
if hDib = 0 Then
‘ Error
End If
[C#]
/* Load a non RGB DIB */
int hDib;
hDib = BiDIB.LoadNonRGBDIB(“C:\\Images\\Test.bmp”);
if (hDib == 0)
{
// Error
}