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
 TIEBitmap - 11.4.0 to 13.6.0 upgrade issue

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
cpstevenc Posted - Feb 06 2025 : 21:53:20
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.



2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 06 2025 : 22:12:10
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
xequte Posted - Feb 06 2025 : 22:09:14
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