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
 Annotations on layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ElCef

4 Posts

Posted - Feb 26 2013 :  03:00:56  Show Profile  Reply
Hi. First of all congratulations for creating such a great library and giving great support in its use!

I have a little problem working with layers: I have a background image and a second layer which I can move around and insert annotations into after having specified Image.ObjLayer[IEV_NEXT_INSERTED_OBJECT] := 1;
I'd like to be able to insert annotations into the entire ImageEnVect area and not limit myself to the layer dimensions, which varies according to zoom, panning etc...
Is it possible to expand the layer so that it occupies the entire client area or should I code it by hand handling the onresize event? Is there any other way?

w2m

USA
1990 Posts

Posted - Feb 26 2013 :  11:30:28  Show Profile  Reply
If you want the layer to be the same size call LayersSync before you add a layer:
ImageEnVect1.LayersSync := True;
iLayer := ImageEnVect1.LayersAdd;

If LayersSync is true all layers must have the same size.

You can also position a layer and set the layer dimensions with
ImageEnVect1.Layers[ilayer].PosX
ImageEnVect1.Layers[ilayer].PosY
ImageEnVect1.Layers[ilayer].Width
ImageEnVect1.Layers[ilayer].Height

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: