Click or drag to resize
SoMRCImageRWReadRegion Method (SbRasterImage, UInt64, SbBox2i32)

Read the specified region of current open image into rasterImage.

Namespace: OIV.Inventor.Image
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public bool ReadRegion(
	SbRasterImage rasterImage,
	ulong imageIndex,
	SbBox2i32 region
)

Parameters

rasterImage
Type: OIV.Inventor.ImageSbRasterImage
imageIndex
Type: SystemUInt64
region
Type: OIV.InventorSbBox2i32

Return Value

Type: Boolean
Remarks

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.

See Also