StiImageConverter Class
Namespace: Stimulsoft.Base.Drawing
Methods
| Method | Returns | Description |
|---|---|---|
bytesToImage static |
Image | |
imageToBytes static |
number[] | |
imageToString static |
string | |
stringToByteArray static |
number[] | |
stringToImage static |
Image |
Method Details
bytesToImage static
bytesToImage(bytes: number[], width: any, height: any, stretch: any, aspectRatio: any): Image
Parameters
- bytes (number[])
- width (any)
- height (any)
- stretch (any)
- aspectRatio (any)
Returns Image
imageToBytes static
imageToBytes(image: Image, allowNulls: any): number[]
Parameters
- image (Image)
- allowNulls (any)
Returns number[]
imageToString static
imageToString(image: Image): string
Parameters
- image (Image)
Returns string
stringToByteArray static
stringToByteArray(str: string): number[]
Parameters
- str (string)
Returns number[]
stringToImage static
stringToImage(str: string): Image
Parameters
- str (string)
Returns Image
Fields
| Field | Type | Description |
|---|---|---|
| str | any |