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
 Vector Coordinates to BMP

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
EnvisionIT Posted - Sep 29 2015 : 00:21:42
I'd like to know if it is possible to convert the following to an actual image using ImageEn. The destination image format is variable, BMP/JPG.

This is what the signature pad returned, basically I did a big X on the pad.

0,65535^54,40^56,41^58,44^59,47^61,51^62,55^64,58^65,61^67,63^69,66^70,67^72,68^74,69^75,70^77,69^78,65^77,68^77,62^0,65535^84,29^82,30^83,29^79,31^81,30^78,34^76,38^77,34^72,43^74,40^75,38^70,47^71,44^68,51^70,47^68,51^66,55^63,63^65,59^61,67^62,63^60,69^58,73^58,77^58,81^~

The instructions from the device state the following:

The value of vector coordinates delimited with a ^ character in the following format: x1,y1^x2,y2^xN,yN^~

If there is a pen-up event, then you use the coordinate 0, 65535 to signal a break in the line ^ is the coordinate delimiter, ~ is the ending delimiter, and a comma (,) is the vector delimiter.

Can it be done with ImageEn? If not does anyone know how to convert this to an image?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 29 2015 : 03:38:23
Hi

This should not be difficult. Why not just use TCanvas MoveTo and LineTo events?

Alternatively you could create a polygon object in a TImageEnVect and use SetObjPolylinePoints.

http://www.imageen.com/help/TImageEnVect.SetObjPolylinePoints.html



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com