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.1.1.0 (2024.1.1)
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