Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageSource

Hierarchy

  • ImageSource

Index

Constructors

constructor

Properties

android

android: any

height

height: number

ios

ios: any

rotationAngle

rotationAngle: number

width

width: number

Methods

fromAsset

fromBase64

  • fromBase64(source: string): Promise<boolean>

fromData

  • fromData(data: any): Promise<boolean>

fromFile

  • fromFile(path: string): Promise<boolean>

fromResource

  • fromResource(name: string): Promise<boolean>

loadFromBase64

  • loadFromBase64(source: string): boolean

loadFromData

  • loadFromData(data: any): boolean

loadFromFile

  • loadFromFile(path: string): boolean

loadFromFontIconCode

  • loadFromFontIconCode(source: string, font: Font, color: Color): boolean

loadFromResource

  • loadFromResource(name: string): boolean

resize

saveToFile

  • saveToFile(path: string, format: "png" | "jpeg" | "jpg", quality?: number): boolean

setNativeSource

  • setNativeSource(nativeSource: any): void

toBase64String

  • toBase64String(format: "png" | "jpeg" | "jpg", quality?: number): string

Static fromAsset

Static fromBase64

Static fromBase64Sync

Static fromData

Static fromDataSync

Static fromFile

Static fromFileOrResourceSync

Static fromFileSync

Static fromFontIconCodeSync

Static fromResource

Static fromResourceSync

Static fromUrl

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