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
 TIEBitmap - 11.4.0 to 13.6.0 upgrade issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

cpstevenc

USA
123 Posts

Posted - Feb 06 2025 :  21:53:20  Show Profile  Reply
in 11.4.0 , Using TIEBitmap

IESaveToStream
and
IELoadFromStream

var
Image: TIEBitmap;
ImageInfo: TIOParams;

Image.IESaveToStream(im, ioJPEG, 75, ImageInfo);
Image.IELoadFromStream(im, ioJPEG, ImageInfo);

I upgraded to 13.6.0 and these don't exist anymore.


There is

Image.SaveToStream
Image.LoadFromStream

But they don't have the same parameters as the "IE" flavors.



xequte

38857 Posts

Posted - Feb 06 2025 :  22:09:14  Show Profile  Reply
Hi

The simplest answer, is that you can just change it to:

Image.WriteEx(im, ioJPEG, 75, ImageInfo);
Image.ReadEx(im, ioJPEG, ImageInfo);

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38857 Posts

Posted - Feb 06 2025 :  22:12:10  Show Profile  Reply
The longer answer is that you do not need your ImageInfo object, as as you can just use TIEBitmap.Params, i.e.

Image.Params.JPEG_Quality := 75;
Image.SaveToStream( im, ioJPEG );

Image.ParamsEnabled := True;
Image.LoadFromStrea( im, ioJPEG );


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: