Accusoft ImagXpress 12
DocumentShear Method
See Also  Send comments on this topic.
ShearAngle

A double value which represents the shearAngle sets the number of degrees the image is sheared. Positive values shear counter-clockwise, while negative values shear clockwise.

Range: -70 to 70  

PadColor

A long value which represents the pad color.

Valid values:

0 = black pixels will be added to pad the image.

0x7FFFFFFF = white pixels will be added to pad the image.

Typical: white

 

ShearType
An enumShearType value which determines the type of shear to use.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : DocumentShear Method

Glossary Item Box

Description

Shears current image clockwise or counter-clockwise.

Syntax

Visual Basic
Public Sub DocumentShear( _
   ByVal ShearAngle As Double, _
   ByVal PadColor As Long, _
   ByVal ShearType As enumShearType _
) 

Parameters

ShearAngle

A double value which represents the shearAngle sets the number of degrees the image is sheared. Positive values shear counter-clockwise, while negative values shear clockwise.

Range: -70 to 70  

PadColor

A long value which represents the pad color.

Valid values:

0 = black pixels will be added to pad the image.

0x7FFFFFFF = white pixels will be added to pad the image.

Typical: white

 

ShearType
ValueDescription
DocShearHorizontalHorizontal shearing.
DocShearVerticalVertical shearing.
An enumShearType value which determines the type of shear to use.

Remarks

Output

  • The component's current image should be already loaded. The current image is sheared. If no image is present, an error is indicated appropriately.
  • IPImageWasModified is set to true if the image was modified, false if the image was not modified.

 

Using DocumentShear

1. Load a 1 bit image from a file or stream input.

2. Call DocumentShear.

3. The current image is sheared.

 

Note: Available in Professional Edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.