Tao.DevIl SDK Documentation

Ilu.iluCrop Method 

iluCrop "crops" the current image to new dimensions. The new image appears the same as the original, but portions of the image are clipped-off, depending on the values of the parameters of these functions. If XOff + Width, YOff + Height or ZOff + Depth is larger than the current image's dimensions, ILU_ILLEGAL_OPERATION is set. If ZOff is minus or equal to one the crop will be done only on 2 dimensions

[Visual Basic]
Public Shared Function iluCrop( _
   ByVal XOff As Integer, _
   ByVal YOff As Integer, _
   ByVal ZOff As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal Depth As Integer _
) As Boolean
[C#]
public static bool iluCrop(
   int XOff,
   int YOff,
   int ZOff,
   int Width,
   int Height,
   int Depth
);

Parameters

XOff
Number of pixels to skip in the x direction.
YOff
Number of pixels to skip in the y direction.
ZOff
Number of pixels to skip in the z direction.
Width
Number of pixels to preserve in the x direction.
Height
Number of pixels to preserve in the y direction.
Depth
Number of pixels to preserve in the z direction.

Return Value

See Also

Ilu Class | Tao.DevIl Namespace