Dart DocumentationstagexlBitmapDataLoadOptions

BitmapDataLoadOptions class

class BitmapDataLoadOptions {

 /**
  *  The application provides *png* files for lossless images.
  */
 bool png = true;

 /**
  * The application provides *jpg* files for lossy images.
  */
 bool jpg = true;

 /**
  * The application provides *webp* files for lossless and lossy images.
  *
  * If *webp* is supported, the loader will automatically switch from *png*
  * and *jpg* files to this more efficient file format.
  */
 bool webp = false;

 /**
  * If the file name contains "@1x." it will be replaced by "@2x." when the
  * context is high density.
  */
 bool autoHiDpi = true;

 BitmapDataLoadOptions({
   this.png: true,
   this.jpg: true,
   this.webp: false,
   this.autoHiDpi: true
 });
}

Constructors

new BitmapDataLoadOptions({bool png: true, bool jpg: true, bool webp: false, bool autoHiDpi: true}) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
BitmapDataLoadOptions({
 this.png: true,
 this.jpg: true,
 this.webp: false,
 this.autoHiDpi: true
});

Properties

bool autoHiDpi #

If the file name contains "@1x." it will be replaced by "@2x." when the context is high density.

bool autoHiDpi = true

bool jpg #

The application provides jpg files for lossy images.

bool jpg = true

bool png #

The application provides png files for lossless images.

bool png = true

bool webp #

The application provides webp files for lossless and lossy images.

If webp is supported, the loader will automatically switch from png and jpg files to this more efficient file format.

bool webp = false