Constructors
constructor
-
Parameters
-
Optional
nativeSource:
any
Properties
rotationAngle
rotationAngle:
number
Methods
fromBase64
-
fromBase64(source: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
fromData
-
fromData(data: any): Promise<boolean>
-
Parameters
Returns Promise<boolean>
fromFile
-
fromFile(path: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
fromResource
-
fromResource(name: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
loadFromBase64
-
loadFromBase64(source: string): boolean
-
Parameters
Returns boolean
loadFromData
-
loadFromData(data: any): boolean
-
Parameters
Returns boolean
loadFromFile
-
loadFromFile(path: string): boolean
-
Parameters
Returns boolean
loadFromFontIconCode
-
loadFromFontIconCode(source: string, font: Font, color: Color): boolean
-
Parameters
Returns boolean
loadFromResource
-
loadFromResource(name: string): boolean
-
Parameters
Returns boolean
resize
-
Parameters
-
maxSize: number
-
Optional
options: any
saveToFile
-
saveToFile(path: string, format: "png" | "jpeg" | "jpg", quality?: number): boolean
-
Parameters
-
path: string
-
format: "png" | "jpeg" | "jpg"
-
Optional
quality: number
Returns boolean
setNativeSource
-
setNativeSource(nativeSource: any): void
toBase64String
-
toBase64String(format: "png" | "jpeg" | "jpg", quality?: number): string
-
Parameters
-
format: "png" | "jpeg" | "jpg"
-
Optional
quality: number
Returns string
Static
fromFileOrResourceSync
Static
fromFontIconCodeSync
Legend
-
Module
-
Object literal
-
Variable
-
Function
-
Function with type parameter
-
Index signature
-
Type alias
-
Enumeration
-
Enumeration member
-
Property
-
Method
-
Interface
-
Interface with type parameter
-
Constructor
-
Property
-
Method
-
Index signature
-
Class
-
Class with type parameter
-
Constructor
-
Property
-
Method
-
Accessor
-
Index signature
-
Inherited constructor
-
Inherited property
-
Inherited method
-
Inherited accessor
-
Protected property
-
Protected method
-
Protected accessor
-
Private property
-
Private method
-
Private accessor
-
Static property
-
Static method