ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Layers Rotate - Slow
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Jan 13 2016 :  20:31:05  Show Profile  Reply
Hello Nigel.

I'm Posting a video that features a Slow Problem with layers of Use.

1 - add an image.

2 - add one layer with an image.

3 - Now Rotate the second layer.

It is now very slow Use Zoom and Move Layer on the screen.

You can check this please?

Thank you so much

Source File Here.

procedure TForm1.BtnAddLayerClick(Sender: TObject);
var
 id: Integer;
begin
 id := imageEnView1.LayersAdd;
 //ImageEnView1.LayersRotationAntialias          := True;
 //ImageEnView1.LayersRotationFilter             := ierBilinear;
 //ImageEnView1.LayersRotationUseFilterOnPreview := True;
 //ImageEnView1.Layers[ id ].UseResampleFilter   := True;
 //ImageEnView1.Layers[ id ].ResampleFilter      := rfLanczos3;

 with ImageEnView1.IO do
  LoadFromFile( ExecuteOpenDialog( ) );
end;

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

procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
 case RadioGroup1.ItemIndex of
  0:
   begin
    ImageEnView1.MouseInteract := [];
   end;

  1:
   begin
    ImageEnView1.MouseInteract := [ miMoveLayers, miRotateLayers ];
   end;

 end;
end;


Video File.
attach/wesleybobato/2016113202930_Layers.zip
6590.96 KB

xequte

39053 Posts

Posted - Jan 13 2016 :  22:11:28  Show Profile  Reply
Hi Wesley

Is it resolved if you set:

ImageEnView1.LayersRotationDelayFilterOnPreview := true;

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 13 2016 :  22:56:56  Show Profile  Reply
Hello Nigel.

unfortunately this did not solve.

I do not use filter in my example.

I disabled everything I tried all methods and still remains slow.
consumes a lot of CPU resource.

I am sending you the two images to test.

Thank's for your attention

attach/wesleybobato/2016113225521_pictures.zip
4744.62 KB
Go to Top of Page

DMC02766

USA
27 Posts

Posted - Jan 15 2016 :  17:58:14  Show Profile  Reply
Im running into the same issue. Seems like images with a lot of detail are the troublesome ones on my end (I have an image with multiple fingerprint images on it that really slows it down). That troublesome image is only 300 dpi but I can rotate a single fingerprint image @ 1200 dpi with hardly any issue.
Go to Top of Page

xequte

39053 Posts

Posted - Jan 17 2016 :  20:15:16  Show Profile  Reply
Thanks, we'll investigate what improvements we can make there.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 18 2016 :  08:08:43  Show Profile  Reply
Hello Nigel

Thank you very much for answering.

Any improvement will be very welcome.
We Await News

Have a great Week.
Go to Top of Page

xequte

39053 Posts

Posted - Jan 25 2016 :  16:01:48  Show Profile  Reply
Hi Wesley

We have implemented a new method for displaying layers during rotation. It is much faster. Email me if you want to test it.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Jan 26 2016 :  07:12:39  Show Profile  Reply
Hi Nigel.

Thank you very much

Your work is Wonderful.

Best regards.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: