Applies a shearing effect to an image, moving the image rasters or columns according to
the specified offsets.
Syntax
'Declaration
Public Shared Sub Shear( _
ByVal As ImGearRasterPage, _
ByVal () As Double, _
ByVal As ImGearShearFillStyle, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As ImGearPixel _
)
'Usage
Dim page As ImGearRasterPage
Dim curvePoints() As Double
Dim fillStyle As ImGearShearFillStyle
Dim interpolate As Boolean
Dim vertical As Boolean
Dim color As ImGearPixel
ImGearEffects.Shear(page, curvePoints, fillStyle, interpolate, vertical, color)
Parameters
- page
- Image to apply shear effect to.
- curvePoints
- The array of offsets to move the image by. Every offset is in the range -1
to 1. Negative values shift the raster/column to the left, while positive values shift it to the
right. The number of offsets is equal to the image width or height depending on the direction of
movement (horizontal or vertical).
- fillStyle
- Specifies how the empty image area is filled.
- interpolate
- If true, interpolation is used to smooth shifted pixel values.
- vertical
- If true, the direction of motion is vertical. Otherwise, the direction is horizontal.
- color
- Background color to use for filling empty image area. Only used if the specified
fill style uses a fill color.
See Also