ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Drawing circles with TImageEnVect

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AndyColmes Posted - Jun 04 2013 : 03:48:34
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
6   L A T E S T    R E P L I E S    (Newest First)
AndyColmes Posted - Jun 04 2013 : 13:20:59
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.
w2m Posted - Jun 04 2013 : 09:47:08
Plain Gradient Fill top to bottom, 16 colors:



52.27 KB

William Miller
w2m Posted - Jun 04 2013 : 09:37:04
Gradient fill with shadow?

48.77 KB

William Miller
w2m Posted - Jun 04 2013 : 08:39:36
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
AndyColmes Posted - Jun 04 2013 : 08:25:46
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.
w2m Posted - Jun 04 2013 : 07:17:30
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