Constructors
constructor
-
Parameters
-
Optional nativeSource: any
Properties
android
android: any
height
height: number
ios
ios: any
rotationAngle
rotationAngle: number
width
width: number
Methods
fromAsset
-
Parameters
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
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
-
Parameters
Returns void
toBase64String
- toBase64String(format: "png" | "jpeg" | "jpg", quality?: number): string
-
Parameters
-
format: "png" | "jpeg" | "jpg"
-
Optional quality: number
Returns string
Static fromAsset
-
Parameters
Static fromBase64
-
Parameters
Static fromBase64Sync
-
Parameters
Static fromData
-
Parameters
Static fromDataSync
-
Parameters
Static fromFile
-
Parameters
Static fromFileOrResourceSync
-
Parameters
Static fromFileSync
-
Parameters
Static fromFontIconCodeSync
-
Parameters
Static fromResource
-
Parameters
Static fromResourceSync
-
Parameters
Static fromUrl
-
Parameters
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