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
 Layer footer

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
gigen Posted - Nov 07 2011 : 02:33:54
Need help!

I am using ImageEnView and I want to create layers that have footers with constant height (independently of resizing).

I've tried to solve my problem with the following code, that adds to current layer a footer of height 18 :

ImageEnVectGlavni.CurrentLayer.Height := ImageEnVectGlavni.CurrentLayer.Height + 18 ;
ImageEnVectGlavni.Proc.ImageResize(ImageEnVectGlavni.CurrentLayer.Width ,
ImageEnVectGlavni.CurrentLayer.Height ,
iehCenter,
ievTop);



It works until I resize a layer, because the footer resizes too and so it's height is no longer 18.

Then I've tried to calculate layer's footer height on ImageEnVectLayerNotify (event = ielResized), but for doing that I need the layer original height and width.

The problem is that I've already changed it with Proc.ImageResize.

So, is there a way to get the layer original width and height after using the upper bold code?

Does anyone have a better idea on how to achieve my goal?
(Having layers with footers insensitive to resizing)

Thanks for help !





Gigen
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 09 2011 : 13:20:42
I'm not sure I understand the problem well.

quote:
Then I've tried to calculate layer's footer height on ImageEnVectLayerNotify (event = ielResized), but for doing that I need the layer original height and width.


Why not store the original width and height somewhere?