decodeRegion abstract method

ImageWrapper decodeRegion(
  1. Rectangle rect,
  2. double sampleSize
)

@brief Method is used to decode rectangle region in the image specified by rect. @param rect area to render @see Rectangle "Rectangle" @param sampleSize if set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory. @return constructed bitmap

Dart code snippet: @snippet bitmap_region_decoder_example.dart dart_BitmapRegionDecoder_decodeRegion

Implementation

ImageWrapper decodeRegion(Rectangle rect, double sampleSize);