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
 Enlarge layer without resizing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spetric

Croatia
308 Posts

Posted - Nov 21 2015 :  16:45:27  Show Profile  Reply
Is it possible to enlarge layer without resize content (image) inside layer?
In version 5.2.0. there is no such option in TIEMouseInteract.

I have an image with alpha channel and I want to resize layer's canvas without resizing image inside.

TIA,
Siniša

xequte

39135 Posts

Posted - Nov 21 2015 :  18:19:10  Show Profile  Reply
Hi Sinisa

It would be something like:

with ImageEnView1.Layers[ n ] do 
begin
  Bitmap.Resize( Bitmap.Width + AddWidth, Bitmap.Height + AddHeight, iehCenter, ievCenter )
  Width := Width + AddWidth
  Height := Height + AddHeight
end;
ImageEnView1.Update;


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

spetric

Croatia
308 Posts

Posted - Nov 23 2015 :  13:03:37  Show Profile  Reply
Thanks Nigel.

I'll try to apply canvas enlargement in OnLayerNotify event.
So, instead of resizing layer, I'll try to "enlarge" canvas.
Go to Top of Page

xequte

39135 Posts

Posted - Nov 23 2015 :  16:45:16  Show Profile  Reply
Hi

Yes, I'm not sure if there is a good way to allow resizing of the layer only via mouse interaction, so let us know how it goes.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: