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
 Polygon Selection edit node
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

markus

Germany
5 Posts

Posted - Nov 20 2012 :  05:30:52  Show Profile  Reply
Hello,
i am very new on ImageEn. I saw in some sample applications the different selection modes (for example rectangle or circle).
If i use the rectangle mode i can edit the selection with the mouse.
I hope same is possible for polygon selections. This means i can select the nodes and move them of an poligonal selection.

Thanks alot for reply

Kind regards.

Markus


w2m

USA
1990 Posts

Posted - Nov 20 2012 :  08:52:25  Show Profile  Reply
Unfortunately, ImageEn does not support moveing the points of a selection polygon like you can with a rectangle.

William Miller
Go to Top of Page

markus

Germany
5 Posts

Posted - Nov 20 2012 :  08:56:17  Show Profile  Reply
Thanks for your reply.

Perhaps there is another solution.
Background: I have to fill the selected or drawed polygon area with a fill-color.
Is there any way to draw a polygon (with editable nodes) and fill this area with an color?

Thanks a lot for all tips and answers.

Markus
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 20 2012 :  09:41:23  Show Profile  Reply
If there is a selection all ImageEnProc will effect only the selection. If there is no selection the procedure effects the entire bitmap. So... if you fill with a color only the selected area will be filled:

ImageEnView1.Proc.Fill(CreateRGB(127,50,200));
ImageEnView1.Proc.Fill(clBlack);

You can not edit the nodes of the polygon selected area; however. It is just not possible with ImageEn.
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

w2m

USA
1990 Posts

Posted - Nov 21 2012 :  11:18:07  Show Profile  Reply
I failed to mention that if you use ImageEnVect you can draw polygons and edit the nodes as well... but the ImageEnVect object is not a selection.

William Miller
Go to Top of Page

markus

Germany
5 Posts

Posted - Nov 21 2012 :  11:25:07  Show Profile  Reply
Dear Mr. Miller.
Thanks for your reply.

I do not need necessarily a selection. If i can create a Polygon with ImageEnVect,
modify the nodes and fill the polygon area with a color and "add" the polygon to the image (saved as bmp or jpg) this can a solution for me.

Kind regards

Markus
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 21 2012 :  11:44:52  Show Profile  Reply
With ImageEnVect you do not fill the color, you specify the objects brush color... Other than that it should work well I suspect.

William Miller
Go to Top of Page

markus

Germany
5 Posts

Posted - Nov 21 2012 :  11:47:01  Show Profile  Reply
i have to test this, but if i understand correctly i can create only the border and set the color for this? I can not fill the area with an specific color?

Markus
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 21 2012 :  13:06:20  Show Profile  Reply
Yes, you can color the border as well as the background, but not by painting... you have to set object properties. Look at the Vectorial demo in samples folder.

William Miller
Go to Top of Page

markus

Germany
5 Posts

Posted - Nov 22 2012 :  02:47:25  Show Profile  Reply
Hello Mr. Miller,

i played around with the demo. Thanks for your great tip.
I set the ObjPolylineClosed poperty to true --> so i can set the brushcolor for filling the area of my polygon.
Then i use copyObjectsToBack and save the file with io.SaveToFile('xxx.bmp');
I can live with that.

Thank you very much for your great help

Markus

Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Jun 11 2015 :  10:41:56  Show Profile  Reply
hi
i want to create any shape by drug mouse
for example
first : create circle so drug mouse on circle until change to any shape
Go to Top of Page

xequte

38510 Posts

Posted - Jun 15 2015 :  00:04:52  Show Profile  Reply
Hi

ImageEn does not support free form manipulation, so if you have an ellipse object, for example, you can only stretch it to make it higher/flatter, you cannot change it to a completely different shape, such as rounded square.

If you have a polygon object, you can drag the points of the polygon to change it to any shape, however.

See the Annotations demo for an example.


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