Main Content


Class: ImageAdapter

Write block of data to region of image




writeRegion(adapter,region_start,region_data) writes a contiguous block of data region_data to the region of the image with top-left pixel at coordinate region_start.

Input Arguments

expand all

Image adapter, specified as an instance of an ImageAdapter.

Top-left coordinates of the region to write, specified as a 2-element vector of positive integers of the form [row column].

Image data, specified as a numeric array.


  • When you construct a class that inherits from the ImageAdapter class, you can optionally implement this method to enable incremental, region-based writing of images. Image adapter classes that do not implement the writeRegion method are read-only.

Version History

Introduced in R2010a

See Also