Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SliceCommandEventArgs Constructor
See Also 
Leadtools.ImageProcessing.Core Namespace > SliceCommandEventArgs Class : SliceCommandEventArgs Constructor



image
The affected images.
sliceImage
The sliced images. It is the programmer's responsibility to free this image, when it is no longer needed, this member is updated only if SliceCommandFlags.CutSlices flag is used, else it will be null.
sliceRectangle
The bounding rectangle of the extracted slice.
deskewAngle
Angle of deskewing. The amount of rotation is expressed in hundredths of degrees. For example, 500 means 5 degrees clockwise.
Initializes a new SliceCommand with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal image As RasterImage, _
   ByVal sliceImage As RasterImage, _
   ByVal sliceRectangle As Rectangle, _
   ByVal deskewAngle As Integer _
)
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim sliceImage As RasterImage
Dim sliceRectangle As Rectangle
Dim deskewAngle As Integer
 
Dim instance As SliceCommandEventArgs(image, sliceImage, sliceRectangle, deskewAngle)
C# 
public SliceCommandEventArgs( 
   RasterImage image,
   RasterImage sliceImage,
   Rectangle sliceRectangle,
   int deskewAngle
)
C++/CLI 
public:
SliceCommandEventArgs( 
   RasterImage image,
   RasterImage sliceImage,
   Rectangle sliceRectangle,
   int deskewAngle
)

Parameters

image
The affected images.
sliceImage
The sliced images. It is the programmer's responsibility to free this image, when it is no longer needed, this member is updated only if SliceCommandFlags.CutSlices flag is used, else it will be null.
sliceRectangle
The bounding rectangle of the extracted slice.
deskewAngle
Angle of deskewing. The amount of rotation is expressed in hundredths of degrees. For example, 500 means 5 degrees clockwise.

Example

Refer to SliceCommandEventArgs example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also