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
 Method to Save TIERenderOperation in File

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
wesleybobato Posted - Oct 22 2014 : 15:12:38
Hello Nigel e william Good Afternoon.
is possible to add a method to fix TIERenderOperation to save power
imgview.LayersFixOperation(layer: integer);

Thank you very much for your attention
5   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Oct 30 2014 : 12:27:21
thank you nigel

good day for you.
xequte Posted - Oct 29 2014 : 21:36:54
Hi Wesley

Render operations only affect the display of a layer, so they can't really be "fixed" because they are affected by the layer behind. In order to "fix" them you need to merge them to layer below.

Here is an example of saving merged layers:
var
  aBitmap : TIEBitmap;
begin
  if dlgSaveImages.Execute = False then
    exit;
  aBitmap := TIEBitmap.Create;
  try
    aBitmap.Allocate(ImageEnView1.Width, ImageEnView1.Height);
    ImageEnView1.LayersDrawTo(aBitmap);
    ImageEnView1.Update;
    aBitmap.Write(dlgSaveImages.Filename);
  finally
    aBitmap.Free
  end;
end;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Oct 29 2014 : 08:26:27
Hello Nigel Again.

Then I had an idea to bring more performance using preprocessing by TIERenderOperation, you could add TIEPROC in this list
Pre for viewing if the User is interested simply save the file to persist.

what do you think about it.

have a great day.
wesleybobato Posted - Oct 29 2014 : 05:11:24
Hello Nigel.
Thank you for your attention.

Nigel this is a quick way to Edit a photo.
sadly I can not save the file changes in layer.

this is important when we need performance because the User can see
a quick way to change the screen.

if the User like the results I could save the file with this method.
also would be important if it were possible aterar standard rendering value

example.
ImageEnView1.Layers [0] .OperationValue (-255 to 255);
ImageEnView1.Layers [0] .Operation: = TIERenderOperation (ComboBox1.ItemIndex);


procedure TForm1.Button1Click(Sender: TObject);
begin
with ImageEnView1.IO do
begin
LoadFromFile(ExecuteOpenDialog());
end;
ImageEnView1.Fit;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
with ImageEnView1 do
begin
//LayersFixSizes();
//LayersFixRotations();
//LayersFixBorders();
//IEBitmap.FixContrast;
//IEBitmap.FixChannelOffset;
//LayersFixOperations;
with IO do
begin
SaveToFile(ExecuteSaveDialog());
end;
end;
end;

procedure TForm1.ComboBox1Change(Sender: TObject);
begin
//ImageEnView1.Layers[0].OperationValue := 80;
ImageEnView1.Layers[0].Operation := TIERenderOperation(ComboBox1.ItemIndex);
ImageEnView1.Update;
end;
xequte Posted - Oct 28 2014 : 14:30:28
Hi Wesley

Sorry for the delay. We've been busy with post-5.2.0 work. Can you explain this requirement in more detail?

A TIERenderOperation on a layer does not affect the quality or display speed, so I'm not sure what benefit LayersFixOperation would add.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com