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
 Layer footer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gigen

Slovenia
1 Posts

Posted - Nov 07 2011 :  02:33:54  Show Profile  Reply
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

fab

1310 Posts

Posted - Nov 09 2011 :  13:20:42  Show Profile  Reply
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: