BitmapDataLoadOptions class

The BitmapDataLoadOptions class contains different options to configure how BitmapDatas are loaded from the server.

The BitmapData.defaultLoadOptions object is the default for all loading operations if no BitmapDataLoadOptions are provided to the BitmapData.load function.




corsEnabled bool
Use CORS to download the image. This is often necessary when you have to download images from a third party server.
read / write
jpg bool
The application provides jpg files for lossy images.
read / write
maxPixelRatio int
The maximum pixel ratio for images on HiDPI displays. [...]
read / write
pixelRatios List<double>
The available pixel ratios for images on HiDPI displays. [...]
read / write
png bool
The application provides png files for lossless images.
read / write
webp bool
The application provides webp files for lossless and lossy images. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


clone() BitmapDataLoadOptions
Create a deep clone of this BitmapDataLoadOptions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]