ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIOParamsVals.TIFF_LZWCompFunc

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dave.sellers Posted - Mar 03 2014 : 13:30:36
Hi

What are TIOParams.TIFF_LZWCompFunc and TIOParams.TIFF_LZWDeCompFunc or rather, how/when are they used?

I can't see any mention in the Help file or in the 'A PROGRAMMERS INTRODUCTION TO USING THE IMAGEEN IMAGE LIBRARY' ebook.

Any info gratefully received.

Thanks
Dave
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 04 2014 : 20:37:40
Hi

Yes, you can assign functions if you want to use your own LZW implementation.

But this is fine too:

ImageEnMView1.MIO.Params[i].TIFF_Compression := ioTIFF_LZW;
ImageEnMView1.MIO.SaveToFileTIFF(aJob.FileName);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Mar 04 2014 : 05:46:47
According to Nigel, you should not need to use them as they are initialized automatically.



William Miller
dave.sellers Posted - Mar 04 2014 : 00:57:05
Hi William

Thanks for your reply. I had thought perhaps they looked like a means by which you could provide your own LZW implementations.

If I wanted to use LZW presumably I would just set e.g.

ImageEnMView1.MIO.Params[i].TIFF_Compression := ioTIFF_LZW;

for each page before ultimately:

ImageEnMView1.MIO.SaveToFileTIFF(aJob.FileName);
w2m Posted - Mar 03 2014 : 15:19:18
You are correct. There is no discussion of this anywhere including in the source code. There is a demo PhotoEn that has this:

procedure TMainForm.FormCreate(Sender: TObject);
begin
// uncomment to enable Gif and TIFF-LZW
  (*
  DefGIF_LZWDECOMPFUNC:=GIFLZWDecompress;
  DefGIF_LZWCOMPFUNC:=GIFLZWCompress;
  DefTIFF_LZWDECOMPFUNC:=TIFFLZWDecompress;
  DefTIFF_LZWCOMPFUNC:=TIFFLZWCompress;
  //*)
end;

The only thing I can say about it is I do not personally use it, but it looks like it enables LZW compression for GIF and TIF files. I do know that the code has been around for a long, long, long... long time.

Nigel said in the forum:

These properties exist for legacy reasons. You should not need to use them as they are initialized automatically:

IEGlobalSettings().DefGIF_LZWDECOMPFUNC
IEGlobalSettings().DefGIF_LZWCOMPFUNC
IEGlobalSettings().DefTIFF_LZWDECOMPFUNC
IEGlobalSettings().DefTIFF_LZWCOMPFUNC

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development