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
 Drawing circles with TImageEnVect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Jun 04 2013 :  03:48:34  Show Profile  Reply
I have to draw circles/dots (3D look) with a 2-digit number in the center. How do I do this in TImageEnVect using objects that corresponds to the font size and the zoom value?

Thanks very much.



8.99 KB

w2m

USA
1990 Posts

Posted - Jun 04 2013 :  07:17:30  Show Profile  Reply
Andy,

My Ebook has a demo "Spots and Text" that shows how to add an "ellipse" object and a "text" object to ImageEnVect. The demo shows how to combine two vectorial objects into one selectable and moveable object.

It does not use 3D however as imageen does not support 3D drawing.

The demo is about 500 lines of code so I am unable to post it here.
The demo displays the text next to the "spot" so you would have to modify it a little to lineup the text on top of the spot.

I just made a "numbered spots demo" from my "spots and text demo":

48.78 KB
Are your spots selectable, moveable and resizeable?
The spots do zoom with zoom.

You could also use a bitmap object for a 3D spot instead of the ellipse object and just use the text object to number the spots.

Is there a maximum number of spots allowed or is the number of spots unlimited?

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Jun 04 2013 :  08:25:46  Show Profile  Reply
Thanks William for the info. The spots can be of any number, so yes, it is unlimited. Can the spots be filled with a gradient giving it more of a 3D look? I think centering the number text in the spot is an issue for me since the font must correspond to the size of the spot object. Any help you can provide is very much appreciated.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 04 2013 :  08:39:36  Show Profile  Reply
This uses a bitmap object for the dot. The font size and the bitmap object size will only become problematic if there are more than 3 digits. After that the bitmap will have be resized to accommodate the text. Are your spots selectable, moveable and resizable?
How is this?

If you want a different bitmap, send it to me for testing.
45.41 KB

William Miller
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 04 2013 :  09:37:04  Show Profile  Reply
Gradient fill with shadow?

48.77 KB

William Miller
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 04 2013 :  09:47:08  Show Profile  Reply
Plain Gradient Fill top to bottom, 16 colors:



52.27 KB

William Miller
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Jun 04 2013 :  13:20:59  Show Profile  Reply
I like the last green ones with gradient top to bottom. My objects are selectable, but not moveable or resizable.

I would appreciate your code snippet to create these.

Thanks again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: