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
 Vector Coordinates to BMP
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

EnvisionIT

USA
3 Posts

Posted - Sep 29 2015 :  00:21:42  Show Profile  Reply
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?

xequte

39061 Posts

Posted - Sep 29 2015 :  03:38:23  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: