ImageGear for .NET
Shear Method




Image to apply shear effect to.
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).
Specifies how the empty image area is filled.
If true, interpolation is used to smooth shifted pixel values.
If true, the direction of motion is vertical. Otherwise, the direction is horizontal.
Background color to use for filling empty image area. Only used if the specified fill style uses a fill color.
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 page As ImGearRasterPage, _
   ByVal curvePoints() As Double, _
   ByVal fillStyle As ImGearShearFillStyle, _
   ByVal interpolate As Boolean, _
   ByVal vertical As Boolean, _
   ByVal color 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)
public static void Shear( 
   ImGearRasterPage page,
   double[] curvePoints,
   ImGearShearFillStyle fillStyle,
   bool interpolate,
   bool vertical,
   ImGearPixel color
)
public: static void Shear( 
   ImGearRasterPage* page,
   double[]* curvePoints,
   ImGearShearFillStyle fillStyle,
   bool interpolate,
   bool vertical,
   ImGearPixel* color
) 
public:
static void Shear( 
   ImGearRasterPage^ page,
   array<double>^ curvePoints,
   ImGearShearFillStyle fillStyle,
   bool interpolate,
   bool vertical,
   ImGearPixel^ 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

Reference

ImGearEffects Class
ImGearEffects Members
ImGearRasterPage Class
ImGearShearFillStyle Enumeration

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback