ImageDetails constructor
ImageDetails({
- ImageFormat? format,
- int? quality,
- Rect? rect,
- double? scale,
Implementation
ImageDetails({
/// The format of the resulting image. Default is `"jpeg"`.
ImageFormat? format,
/// When format is `"jpeg"`, controls the quality of the resulting image.
/// This value is ignored for PNG images. As quality is decreased, the
/// resulting image will have more visual artifacts, and the number of bytes
/// needed to store it will decrease.
int? quality,
/// An object specifying the area of the document to capture, in CSS pixels,
/// relative to the page. If omitted, the currently visible viewport is
/// captured.
Rect? rect,
/// The scale factor to apply to the image. Defaults to devicePixelRatio.
double? scale,
}) : _wrapped = $js.ImageDetails(
format: format?.toJS,
quality: quality,
rect: rect?.toJS,
scale: scale,
);