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
 Params modification

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
eballinas Posted - Oct 12 2022 : 14:05:55
I have tried to modify the parameters of a TIFF image in different parts of my code. I have seen following the debugger, the param modification is done, executed. But, when I save it to a file or a database, the size is the same that the original images.
What am I doing wrong?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 16 2022 : 20:44:36
Please show me the code you use for adding images to the database.



Nigel
Xequte Software
www.imageen.com
eballinas Posted - Oct 14 2022 : 17:00:50
Can you explain me what do you mean with "Saved"?
Please help me...
This is very important.
xequte Posted - Oct 14 2022 : 16:03:46
The code should be:

...
fDBMultiBitmap.OnGetSaveParams := DBMultiBitmapGetSaveParams;
...

procedure Tfmain.DBMultiBitmapGetSaveParams(Sender: TObject; const Filename: string; Params: TIOParams);
begin
  // Use JPEG compression when blob is save to database (Assumes ImageFormat is ioTIFF)
  Params.TIFF_Compression := ioTIFF_JPEG;
end;


Note: The OnGetSaveParams is only called if the image needs to be "saved" to the database. If it does not need to be converted it will just be added to the database without saving.

Nigel
Xequte Software
www.imageen.com
eballinas Posted - Oct 14 2022 : 09:32:13
var Params: TIOParams
Is there an error here?
xequte Posted - Oct 13 2022 : 16:06:11
Hi

This has been sent. Please check your Spam folder if it has not arrived.

The params are not set, because they need to be specified before the image is saved to the database blob.

Nigel
Xequte Software
www.imageen.com
eballinas Posted - Oct 13 2022 : 11:03:51
I just send an email. But, I would like to know more about the problem. Why the params were not updating?
xequte Posted - Oct 13 2022 : 00:21:44
Hi

Please email me for an update that adds an OnGetSaveParams event, e.g.

...
fDBMultiBitmap.OnGetSaveParams := DBMultiBitmapGetSaveParams;
...

procedure Tfmain.DBMultiBitmapGetSaveParams(Sender: TObject; const Filename: string; Params: TIOParams);
begin
  // Use JPEG compression when blob is save to database (Assumes ImageFormat is ioTIFF)
  Params.TIFF_Compression := ioTIFF_JPEG;
end;


Nigel
Xequte Software
www.imageen.com