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
 DoPreviews without dialog

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
graph_man Posted - Jun 22 2022 : 14:16:38
I need to make color adjustments for multipage file.
For fist page I use
ImageEnProc1->DoPreviews(ppeColorAdjust);

I can save all settings by using TIPDialogParams

but

How to perform the same transformations for the rest of the pages without having to display DoPreviews dialog for each of them?
4   L A T E S T    R E P L I E S    (Newest First)
graph_man Posted - Jun 23 2022 : 11:49:46
> Please email me for a test version

I sent you a message.
xequte Posted - Jun 22 2022 : 22:53:36
Hi

Please email me for a test version that allows you to apply the values from ImageEnView1.Proc.DoPreviews to another image.

Here are some examples:

EXAMPLE 1

// Prompt user to specify color curve settings (using our "Editing" TImageEnView)
btnApplyCurve.Enabled := ImageEnView1.Proc.DoPreviews( [peColorCurve] );

// Apply specified color curve to current image (in our "Viewing" TImageEnView)
procedure TForm1.btnApplyCurveClick(Sender: TObject);
begin
  ImageEnview1.Proc.ApplyPreviews( ImageEnView2 );
end;


EXAMPLE 2

// Allow user to specify a resampling value and apply it to all images in a folder
ssFiles := TStringList.Create;
GetFilesInFolder( ssFiles, 'D:\test\' ); // This is an example method only. It does not exist
if ImageEnView1.Proc.DoPreviews( [peResize] ) then
begin
  for i := 0 to ssFiles.Count - 1 do
  begin
    bmp := TIEBitmap.Create;
    bmp.Read( ssFiles[i] );
    ImageEnView1.Proc.ApplyPreviews( bmp );
    bmp.Write( ssFiles[i] );
    bmp.Free;
  end;
end;
ssFiles.Free;


EXAMPLE 3

// Allow the user to specify color curve settings
ImageEnView1.Proc.DoPreviews([peColorCurve]);
ImageEnView1.Proc.IPDialogParams.SaveToFile( ChangeFileExt( Application.ExeName, '.curvesettings' ));

// Apply saved color curve settings to the current image
ImageEnView1.Proc.IPDialogParams.LoadFromFile( ChangeFileExt( Application.ExeName, '.curvesettings' ));
ImageEnView1.Proc.ApplyPreviews( ImageEnView1 );


Nigel
Xequte Software
www.imageen.com
graph_man Posted - Jun 22 2022 : 16:39:27
Thanks. But I need all possible commands from the DoPreviews window (not only COLORCURVE).

> In a future updated we will allow DoPreviews functionality to be applied to multiple images.

It is better to add the ability to execute DoPreviews command without a dialog box.
xequte Posted - Jun 22 2022 : 16:31:01
Hi

That is not well supported use-case at this time. You would need to use the properties in TIPDialogParams:

ImageEnView1.Proc.IPDialogParams.COLORCURVE_CurvePoints
ImageEnView1.Proc.IPDialogParams.COLORCURVE_Channel

To a configure a temporary TIEColorCurve1. And then apply it to a bitmap:

IEColorCurve1.ApplyCurve( bmp );

In a future updated we will allow DoPreviews functionality to be applied to multiple images.

Nigel
Xequte Software
www.imageen.com