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
 Enlarge layer without resizing

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
spetric Posted - Nov 21 2015 : 16:45:27
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 23 2015 : 16:45:16
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
spetric Posted - Nov 23 2015 : 13:03:37
Thanks Nigel.

I'll try to apply canvas enlargement in OnLayerNotify event.
So, instead of resizing layer, I'll try to "enlarge" canvas.
xequte Posted - Nov 21 2015 : 18:19:10
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