Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap). The native source object will update either the android or ios properties, depending on the target os.
The native image object. Will be either a Bitmap for Android or a UIImage for iOS.
The Android-specific image instance. Will be undefined when running on iOS.
Gets the height of this instance. This is a read-only property.
The iOS-specific UIImage instance. Will be undefined when running on Android.
Gets or sets the rotation angle that should be applied to the image. (Used in android)
Gets the width of this instance. This is a read-only property.
The ImageAsset instance used to create ImageSource.
The Base64 string to load the image from.
The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
The location of the file on the file system.
The name of the resource (without its extension).
The Base64 string to load the image from.
The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
The location of the file on the file system.
The name of the resource (without its extension).
Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize.
The maximum pixel dimension of the resulting image.
Optional parameter, Only used for android, options.filter is a boolean which determines whether or not bilinear filtering should be used when scaling the bitmap. If this is true then bilinear filtering will be used when scaling which has better image quality at the cost of worse performance. If this is false then nearest-neighbor scaling is used instead which will have worse image quality but is faster. Recommended default is to set filter to 'true' as the cost of bilinear filtering is typically minimal and the improved image quality is significant.
Saves this instance to the specified file, using the provided image format and quality.
The path of the file on the file system to save to.
The format (encoding) of the image.
Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
Sets the provided native source object (typically a Bitmap or a UIImage). This will update either the android or ios properties, depending on the target os.
The native image object. Will be either a Bitmap for Android or a UIImage for iOS.
Converts the image to base64 encoded string, using the provided image format and quality.
The format (encoding) of the image.
Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
Loads this instance from the specified asset asynchronously.
The ImageAsset instance used to create ImageSource.
Loads this instance from the specified base64 encoded string asynchronously.
The Base64 string to load the image from.
Loads this instance from the specified base64 encoded string.
The Base64 string to load the image from.
Loads this instance from the specified native image data asynchronously.
The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
Loads this instance from the specified native image data.
The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
Loads this instance from the specified file asynchronously.
The location of the file on the file system.
Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the "res://" prefix).
The location of the file on the file system.
Loads this instance from the specified file.
The location of the file on the file system.
Creates a new ImageSource instance and loads it from the specified font icon code.
The hex font icon code string
The font for the corresponding font icon code
The color of the generated icon image
Loads this instance from the specified resource name asynchronously.
The name of the resource (without its extension).
Loads this instance from the specified resource name.
The name of the resource (without its extension).
Downloads the image from the provided Url and creates a new ImageSource instance from it.
The link to the remote image object. This operation will download and decode the image.
Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images.