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
 Possible to save effects settings ?

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
mastinf Posted - Oct 30 2015 : 05:01:19
In my application i use the following code to open the image effect dialog:

img.Proc.DoPreviews(ppeEffects)

I would like to save the settings somewhere where the window is closed.
Is there a way to save all settings ? Or, how can access the settings (i'm particulary interested to the resize settings) after the effect dialog is closed ?

thanks

Roberto
Imagen 5.2

Roberto Nicchi
Master Informatica
Italy
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 30 2015 : 16:57:23
Hi Bill,

Please ensure that the preview is enabled.

ImageEnView1.Proc.PreviewsParams := ImageEnView1.Proc.PreviewsParams + [ prppDefaultLockPreview ];




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
mastinf Posted - Oct 30 2015 : 10:22:39
many thanks !

Roberto

Roberto Nicchi
Master Informatica
Italy
w2m Posted - Oct 30 2015 : 10:11:30
According to the documentation this should function:
procedure TForm1.Button1Click(Sender: TObject);
var
  iAppSettingsFolder: string;
begin
  {Set default "Crop" parameters}
  ImageEnView1.Proc.IPDialogParams.Crop_Left := 0;
  ImageEnView1.Proc.IPDialogParams.Crop_Top := 0;
  ImageEnView1.Proc.IPDialogParams.Crop_Right := 32;
  ImageEnView1.Proc.IPDialogParams.Crop_Bottom := 32;
  {Set default "Resize" parameters}
  ImageEnView1.Proc.IPDialogParams.Resize_Percent := 50;
  iAppSettingsFolder := AppDataFolder + 'ASG\Apprehend\';
  {Make parameters persistent (saved between sessions)}
  if FileExists(iAppSettingsFolder + 'Previews.dat') then
    ImageEnView1.Proc.IPDialogParams.LoadFromFile(iAppSettingsFolder +
      'Previews.dat');
  if ImageEnView1.Proc.DoPreviews([peCrop]) then
    ImageEnView1.Proc.IPDialogParams.SaveToFile(iAppSettingsFolder +
      'Previews.dat');
end;

but with respect to the crop preview, there seems to be three problems with the dialog:
1. When you set the crop parameters before the dialog is displayed, the crop values are set to the passed parameters but the dialog selects the entire image instead of the crop values.
2. If you change the crop parameters at runtime, the selection does not change to match the values shown in the spinedits.
3. When the dialog is shown after the settings have been saved to a file the spinedits match that saved to the file but the whole image remains selected.

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