Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, March 3, 2014 4:43:17 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 353


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)

File Attachment(s):
DecompG4Buf.zip (64kb) downloaded 56 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.074 seconds.