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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 loading IOParamsVals
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - May 07 2015 :  21:47:28  Show Profile  Reply
Hi All,

ImageEnIO := TImageEnIO.CreateFromBitmap(ABitmap);
ImageEnIO.Params.?

What params are assigned via the TImageEnIO component?
for example is IOParamsVals.TIFF_Compression assigned?

Thanks
Ron

xequte

38514 Posts

Posted - May 07 2015 :  21:56:15  Show Profile  Reply
Hi

When creating a TImageEnIO all Params will have the default value. Params are set when loading a file (LoadFromFile/LoadFromStream), loading the params only (ParamsFromFile/ParamsFromStream) assignment of params (Params.Assign).

So in your example above TIFF_Compression would have a default value.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - May 08 2015 :  06:12:38  Show Profile  Reply
Thanks Nigel,

Is there any way to populate the TIOParamsVals structure with a TIEBitmap?
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 08 2015 :  06:51:13  Show Profile  Reply
If you loaded ABitmap from a file into ImageEnView you can assign the ImageEnView.IO.Params to ImageEnIO.Params.
ImageEnIO.Params.Assign(ImageEnView.IO.Params);

or just assign each parameter you need:
ImageEnIO.Params.TIFF_Compression := ImageEnView.IO.Params.TIFF_Compression;

If ABitmap is assigned from memory you can modify any of the ImageEnIO.Params:
ImageEnIO.Params.Width := ABitmap.Width;
ImageEnIO.Params.Height := ABitmap.Height;


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38514 Posts

Posted - May 11 2015 :  00:27:30  Show Profile  Reply
Also, when loading and saving TIEBitmaps you can also pass a TIOParamVals object to get/set the parameters:

http://www.imageen.com/help/TIEBitmap.Read.html
http://www.imageen.com/help/TIEBitmap.Write.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - May 11 2015 :  12:46:34  Show Profile  Reply
Thanks All!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: