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? |
|
|