Click or drag to resize
SoRasterImageRWReadRegion Method

Read the specified region of current open image into rasterImage.

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

Parameters

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

Return Value

Type: Boolean
Remarks

Returns true if successful. Call the OIV.Inventor.Image.SoRasterImageRW.Open(OIV.Inventor.Image.SoRasterImageIO, OIV.Inventor.Image.SoRasterImageRW.OpenModes) 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