ZSK Web API

ZSK Web API

CreatePNG

POST

Creates a TrueView PNG preview. 

TrueView

Parameters

Parameter Type Description Required
RequestType string Creates a TrueView PNG preview. Yes
Monograms list List with the monograms Yes
FontFamily string Font name Yes
FontSizeMM double Font size in mm Yes
UsedNeedle int Used needle (color) Yes
XposMM double horizontal position of the text No
YposMM double vertical position of the text No
HorizontalAlignment int horizontal alignment (0-left, 1-center, 2-right) No
TextBendProcent double Used to define the text bend in procent No
TextStitchParameter string Defines the used stitch parameter Yes
Needle List List of the used needles (colors) Yes
TrueView section defines the used TrueView parameter No
PngResolution int Resolution for the created PNG No

Example

{
	"RequestType": "CreatePNG",
	"Monograms": [
		{
			"Text": [
				"ZSK Web API"
			],
			"FontFamily": "Arial",
			"FontSizeMM": 10.0,
			"UsedNeedle": 1,
			"XposMM": 0.0,
			"YposMM": 0.0,
			"HorizontalAlignment": 0,
			"TextBendProcent": 0.0,
			"TextStitchParameter": "Premium"
		}
	],
	"Needle": [
		{
			"Red": 255,
			"Green": 0,
			"Blue": 0,
			"Name": "Red"
		}
	],
	"TrueView": {
		"Strichdicke": "300",
		"Helligkeit": "100",
		"BeleuchtungEin": "1",
		"BeleuchtungWinkel": "90",
		"AusblendenAktiv": "1",
		"AusblendenAb": "127"
	},
	"PngResolution": 254,
	"ServerVersion": 3
}