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.
Constructors
Properties
- corsEnabled ↔ bool
-
Use CORS to download the image. This is often necessary when you have
to download images from a third party server.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- jpg ↔ bool
-
The application provides jpg files for lossy images.
getter/setter pair
- maxPixelRatio ↔ int
-
The maximum pixel ratio for images on HiDPI displays.
getter/setter pair
-
pixelRatios
↔ List<
double> -
The available pixel ratios for images on HiDPI displays.
getter/setter pair
- png ↔ bool
-
The application provides png files for lossless images.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webp ↔ bool
-
The application provides webp files for lossless and lossy images.
getter/setter pair
Methods
-
clone(
) → BitmapDataLoadOptions - Create a deep clone of this BitmapDataLoadOptions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited