GetJPEGCompression Example for C++ 5.0 and later
void TestGetJPEGCompression(ILEADRasterTwain * pRasterTwain)
{
short nRet = pRasterTwain->GetJPEGCompression(L_LTWAIN_GET_JPEG_COMPRESSION);
if (nRet == 0)
{
CString csJpegData;
csJpegData.Format(TEXT("Color Space = %d\nQuantMap = %d\nGetHuffmanMap = %d\nGetQuantTable Flags = %d\nGetQuantTable Length = %d\nGetQuantTable Data = %d\nGetHuffmanDC Flags = %d\nGetHuffmanDC Data = %d\nGetHuffmanAC Flags = %d\nGetHuffmanAC Data = %d\n"),
pRasterTwain->GetJPEGCompressionData ()->ColorSpace,
pRasterTwain->GetJPEGCompressionData()->GetQuantMap (0),
pRasterTwain->GetJPEGCompressionData()->GetHuffmanMap (0),
pRasterTwain->GetJPEGCompressionData()->GetQuantTable (0)->Flags,
pRasterTwain->GetJPEGCompressionData()->GetQuantTable(0)->Length,
pRasterTwain->GetJPEGCompressionData()->GetQuantTable(0)->Data,
pRasterTwain->GetJPEGCompressionData()->GetHuffmanDC(0)->Flags,
pRasterTwain->GetJPEGCompressionData()->GetHuffmanDC(0)->Data,
pRasterTwain->GetJPEGCompressionData()->GetHuffmanAC(0)->Flags,
pRasterTwain->GetJPEGCompressionData()->GetHuffmanAC(0)->Data);
MessageBox(NULL, csJpegData, TEXT("JPEG Compression Data"), MB_OK);
}
}