Class
ImageSource
ImageSource
Summary
Constructors
Properties
Methods
- fromAsset
- fromAsset
- fromBase64
- fromBase64
- fromBase64Sync
- fromData
- fromData
- fromDataSync
- fromFile
- fromFile
- fromFileOrResourceSync
- fromFileSync
- fromFontIconCodeSync
- fromResource
- fromResource
- fromResourceSync
- fromUrl
- loadFromBase64
- loadFromData
- loadFromFile
- loadFromFontIconCode
- loadFromResource
- resize
- resizeAsync
- saveToFile
- saveToFileAsync
- setNativeSource
- toBase64String
- toBase64StringAsync
Constructors
constructor
new ImageSource(nativeSource?: any): ImageSource
Properties
android
height
ios
rotationAngle
width
Methods
fromAsset
fromAsset(asset: ImageAsset): Promise<ImageSource>
| Parameter | Default | Description |
asset | |
Returns Promise<ImageSource>
fromBase64
| Parameter | Default | Description |
source | | string |
Returns Promise<boolean>
fromData
| Parameter | Default | Description |
data | | any |
Returns Promise<boolean>
fromFile
| Parameter | Default | Description |
path | | string |
Returns Promise<boolean>
fromResource
| Parameter | Default | Description |
name | | string |
Returns Promise<boolean>
loadFromBase64
| Parameter | Default | Description |
source | | string |
Returns boolean
loadFromData
| Parameter | Default | Description |
data | | any |
Returns boolean
loadFromFile
| Parameter | Default | Description |
path | | string |
Returns boolean
loadFromFontIconCode
Returns boolean
loadFromResource
| Parameter | Default | Description |
name | | string |
Returns boolean
resize
resize(maxSize: number, options?: any): ImageSource
resizeAsync
resizeAsync(maxSize: number, options?: any): Promise<ImageSource>
saveToFile
| Parameter | Default | Description |
path | | string |
format | | "png" | "jpeg" | "jpg" |
quality | | number |
Returns boolean
saveToFileAsync
| Parameter | Default | Description |
path | | string |
format | | "png" | "jpeg" | "jpg" |
quality | | number |
Returns Promise<boolean>
setNativeSource
| Parameter | Default | Description |
nativeSource | | any |
Returns void
toBase64String
| Parameter | Default | Description |
format | | "png" | "jpeg" | "jpg" |
quality | | number |
Returns string
toBase64StringAsync
| Parameter | Default | Description |
format | | "png" | "jpeg" | "jpg" |
quality | | number |
Returns Promise<string>
fromAsset
Static
fromAsset(asset: ImageAsset): Promise<ImageSource>
fromBase64
Static
fromBase64(source: string): Promise<ImageSource>
fromBase64Sync
Static
fromBase64Sync(source: string): ImageSource
fromData
Static
fromData(data: any): Promise<ImageSource>
fromDataSync
Static
fromDataSync(data: any): ImageSource
fromFile
Static
fromFile(path: string): Promise<ImageSource>
fromFileOrResourceSync
Static
fromFileOrResourceSync(path: string): ImageSource
fromFileSync
Static
fromFileSync(path: string): ImageSource
fromFontIconCodeSync
Static
fromFontIconCodeSync(source: string, font: Font, color: Color): ImageSource
Returns ImageSource
fromResource
Static
fromResource(name: string): Promise<ImageSource>
fromResourceSync
Static
fromResourceSync(name: string): ImageSource
fromUrl
Static
fromUrl(url: string): Promise<ImageSource>
- Previous
- ImageCache
- Next
- InheritedCssProperty