ImageGear for .NET
AddTilt(ImGearRasterPage,Double,Double) Method
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : AddTilt(ImGearRasterPage,Double,Double) Method




page
An ImageGear.Core.ImGearRasterPage class object to process.
slopeX
Specifies the slope of the plane in X direction, in units per pixel.
slopeY
Specifies the slope of the plane in Y direction, in units per pixel.

Glossary Item Box

Adds a specified plane to the input image to correct for a tilt in the image luminance.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
An ImageGear.Core.ImGearRasterPage class object to process.
slopeX
Specifies the slope of the plane in X direction, in units per pixel.
slopeY
Specifies the slope of the plane in Y direction, in units per pixel.

Remarks

This method adds a specified plane to the input image to correct for a tilt in the image luminance. The plane has X and Y zero crossing at the center of the input image with dSlopeX and dSlopeY as specified in the arguments.

Can be applied only to 8, 16 or 32-bpp grayscale images with one channel.

Example

C#Copy Code
// Find the tilt of an image.
double slopeX, slopeY, piston;
ImGearRasterProcessing.FindTilt(igRasterPage, out slopeX, out slopeY, out piston);

// Add the found tilt from the image, in effect removing it.
ImGearRasterProcessing.AddTilt(igRasterPage, slopeX, slopeY);
Visual BasicCopy Code
' Find the tilt of an image.
Dim slopeX As Double, slopeY As Double, piston As Double
ImGearRasterProcessing.FindTilt(igRasterPage, slopeX, slopeY, piston)

' Add the found tilt from the image, in effect removing it.
ImGearRasterProcessing.AddTilt(igRasterPage, slopeX, slopeY)

See Also

©2013. Accusoft Corporation. All Rights Reserved.