Render

Format

/1/Render/[design component]

Design component can be Lettering, a design, a template or a compound.

Requests can be made using GET or POST methods for "Designs" and "Templates". For POST method, the parameters must be passed in the body of the request, as a JSON object containing key/value pairs. The key/value pairs must be double-quoted strings with decoded text, following the same format from the query parameters of GET requests, as shown in the examples below:

Description

Renders a design component onto a bitmap and returns the bitmap.

Parameters

If ImageWidth and ImageHeight are both specified, the resulting image will be the specified width and height.

If only one of ImageWidth and ImageHeight are specified, and IsSquare is false, then the resulting image will be generated using that value as a constraint and the other value will be calculated such that the image is at the same aspect ratio as the design component. Otherwise, if IsSquare is true, then the resulting image will be square using the specified value as a constraint.

If ImageWidth and ImageHeight are both omitted, then the image will be generated at a size determined by the DPI parameter to be the "actual" size of the embroidery.

An image using a transparent background can be obtained by using Format=png and Background=00000000. JPG images do not support transparency.

Example

/1/Render/Lettering?Text=ABC&ImageWidth=400

Output

Sample