Visual Basic |
---|
Public Sub DocumentShear( _ ByVal ShearAngle As Double, _ ByVal PadColor As Long, _ ByVal ShearType As enumShearType _ ) |
- 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.Value Description DocShearHorizontal Horizontal shearing. DocShearVertical Vertical shearing.
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.