LEADTOOLS Support
Imaging
Imaging SDK Questions
HOW TO: Decompress CCITT Fax Group 4 buffer
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, March 3, 2014 4:38:17 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
The attached Visual C++ 2010 project shows how to decompress a 1-bit CCITT G4 image stored in a memory buffer, then save the image in an uncompressed 1-bit Windows BMP file.
The project uses the following C DLL functions from LEADTOOLS v18:
L_SetLoadInfoCallback()
L_LoadBitmapMemory()
L_SaveBitmap()
L_FreeBitmap()
The buffer properties need to be known in advance. The attached ZIP file contains a sample G4 image without a TIF header and with the following properties:
Format: Fax Group4
Orientation: TOP LEFT
Photometric Interpretation: Black on white
Width: 2048 pixels
Height: 2048 pixels
Bits per pixel: 1 (like all G4 images)
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
HOW TO: Decompress CCITT Fax Group 4 buffer
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.