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

Alan

Australia
10 Posts

Posted - Feb 27 2022 :  01:39:57  Show Profile  Reply
Hi
Is it possible to for the grid to be sized to the assigned layer?

ImageEnView1.DisplayGridLyr:=(ImageEnView1.CurrentLayer.LayerIndex);

Still fills the client area not the Layer.

Do I need to draw my own grid?

Thanks

Alan

PS sorry for the basic question just getting started with ImageEn

xequte

38608 Posts

Posted - Feb 27 2022 :  15:45:36  Show Profile  Reply
Hi Alan

DisplayGridLyr only supports iedgPixelGrid. What are you looking to do?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Alan

Australia
10 Posts

Posted - Feb 27 2022 :  22:50:09  Show Profile  Reply
Hi Nigel

Please see the attached image, I have a gutter either-side of my image I'd like to add a grid over the image but not covering the gutter.

As there is already a grid option built in I wondered if it could be used?

Thanks

Alan


Go to Top of Page

xequte

38608 Posts

Posted - Feb 28 2022 :  00:03:43  Show Profile  Reply
Hi Alan

How would you want the grid positioned?

You might be better to draw a custom line using an event such as OnDrawCanvas:

https://www.imageen.com/help/TImageEnView.OnDrawCanvas.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Alan

Australia
10 Posts

Posted - Feb 28 2022 :  01:39:16  Show Profile  Reply
Thanks for responding.

I have implemented my own grid drawing :)

Not sure if it was the best way but I used line layers and then just merged them with the image layer.

Thanks

Alan

PS
I know this has been asked before: but is there a way to add my own shape to the shapes list.

Go to Top of Page

xequte

38608 Posts

Posted - Feb 28 2022 :  20:45:28  Show Profile  Reply
Hi Alan

Line Layers will work, but I think canvas drawing would be quicker and simpler.

For custom shapes you should use a TIEPolylineLayer.

Alternatively, if you have new shapes of general appeal, you can forward them to us for inclusion in the library.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: