You are viewing the documentation for ThermalLabel SDK v14. The latest version is v16. View this page for v16
Class ItemRenderer
The Item Renderer
Inheritance
System.Object
ItemRenderer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Neodynamic.SDK.Printing
Assembly: cs.temp.dll.dll
Syntax
public class ItemRenderer
Methods
DrawOnCanvas(Item, SKCanvas)
Draw the specified Item onto the specified Canvas object.
Declaration
public static void DrawOnCanvas(Item item, SKCanvas canvas)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The Item object. |
| SKCanvas | canvas | The Canvas object. |
GetImage(Item)
Gets a PNG image output of the specified Item object encoded in Base64 format.
Declaration
public static string GetImage(Item item)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The Item object to be rendered to a PNG image. |
Returns
| Type | Description |
|---|---|
| System.String | A PNG image output of the specified Item object encoded in Base64 format. |
GetImage(Item, Boolean)
Gets a PNG image output of the specified Item object encoded in Base64 format or an Error Message if required.
Declaration
public static string GetImage(Item item, bool returnErrorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The Item object to be rendered to a PNG image. |
| System.Boolean | returnErrorMessage | Specifies whether an error message should be returned if PNG generation fails. |
Returns
| Type | Description |
|---|---|
| System.String | A PNG image output of the specified Item object encoded in Base64 format or an Error Message. |