StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Rob  
#1 Posted : Tuesday, June 11, 2019 12:50:38 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 416 time(s) in 354 post(s)
Code:
var gestureName = "e";       //Name of gesture
var imageWidth = 500;        //Width of the gesture drawing
var lineWidth = 5;           //Thickness of gesture line
var lineArrowWidth = 4.0;    //Size of ending arrow
var lineColor = Color.Blue;  //Color of gesture line
var bgColor = Color.White;   //Color of image background

//Get the first gesture matching the name (should only ever be one, but to be safe)
var gesture = sp_config.Gestures.Where(g => g.Name == gestureName).First();

//Generate image from the FIRST stored point pattern and copy the image to the clipboard
clip.SetImage(gesture.PointPatterns.First().GetImage(imageWidth, 0, lineWidth, lineArrowWidth, lineColor, bgColor));

Edited by user Tuesday, June 11, 2019 12:53:33 PM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.