LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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 LeadRect, _
   ByVal deskewAngle As Integer _
)
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim sliceImage As RasterImage
Dim sliceRectangle As LeadRect
Dim deskewAngle As Integer
 
Dim instance As New SliceCommandEventArgs(image, sliceImage, sliceRectangle, deskewAngle)
C# 
public SliceCommandEventArgs( 
   RasterImage image,
   RasterImage sliceImage,
   LeadRect sliceRectangle,
   int deskewAngle
)
C++/CLI 
public:
SliceCommandEventArgs( 
   RasterImage^ image,
   RasterImage^ sliceImage,
   LeadRect 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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also