SoMRCImageRWReadRegion Method (SbRasterImage, UInt64, SbBox2i32) |
Read the specified region of current open image into rasterImage.
Namespace: OIV.Inventor.Image
public bool ReadRegion( SbRasterImage rasterImage, ulong imageIndex, SbBox2i32 region )
Returns true if successful. Call the () method before calling this method.
After calling this method successfully, the size of the OIV.Inventor.Image.SbRasterImage is the requested region size. The requested region may extend outside the source image. In this case, undefined pixels are set to zero. The region may be as small as a single pixel, e.g. (1,1,1,1), but xmin must be <= xmax and ymin <= ymax.