ArcGISImage class final

The Image object.

Implemented types

Constructors

ArcGISImage.new({required int height, required int width, required Uint8List data})
Creates a new image object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
Height of image.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Width of image.
no setter

Methods

getBuffer() → Uint8List
Returns image data in RGBA.
getEncodedBuffer() → Uint8List
Returns image data in the same format that it was created.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toImage() → Future<Image>
Converts this image to a ui.Image. The caller is responsible for calling ui.Image.dispose() on the returned image.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromAsset(String assetKey) → Future<ArcGISImage>
Retrieves an ArcGISImage from the rootBundle under the key assetKey.
fromByteData(ByteData byteData) → ArcGISImage
Creates an ArcGISImage parsed from a raw data buffer in JPG or PNG format.
fromBytes(Uint8List bytes) → ArcGISImage
Creates an ArcGISImage parsed from a raw data buffer in JPG or PNG format.
fromFile(Uri fileUri) → ArcGISImage?
Creates a new image object from a file.
fromImage(Image image) → Future<ArcGISImage>
Converts a ui.Image to an ArcGISImage.
fromScaledAsset(String assetKey, {double devicePixelScale = 1.0}) → Future<ArcGISImage>
For use with resolution-aware image assets, retrieves an ArcGISImage from the rootBundle under the key assetKey, matching the devicePixelScale.
withBuffer(Uint8List data) → ArcGISImage?
Creates a new image object from a buffer.