Methods
Static bytesToImage
- bytesToImage(bytes: number[], width?: number, height?: number, stretch?: boolean, aspectRatio?: boolean): Image
-
Parameters
-
bytes: number[]
-
Default value width: number = 200
-
Default value height: number = 200
-
Default value stretch: boolean = true
-
Default value aspectRatio: boolean = false
Static imageToBytes
- imageToBytes(image: Image, allowNulls?: boolean): number[]
-
Parameters
-
-
Default value allowNulls: boolean = false
Returns number[]
Static imageToString
- imageToString(image: Image): string
-
Parameters
Returns string
Static stringToByteArray
- stringToByteArray(str: string): number[]
-
Parameters
Returns number[]
Static stringToImage
- stringToImage(str: string): Image