This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IP > IPolynomialXform Interface > IPolynomialXform.ApplyShift Method (ArcObjects .NET 10.5 SDK) |
Applies a shift to the polynomial.
[Visual Basic .NET] Public Sub ApplyShift ( _ ByVal direction As esriTransformDirection, _ ByVal shiftX As Double, _ ByVal shiftY As Double _ )
[C#] public void ApplyShift ( esriTransformDirection direction, double shiftX, double shiftY );
[C++]
HRESULT ApplyShift(
esriTransformDirection direction,
double shiftX,
double shiftY
);
[C++]
Parameters direction [in]
direction is a parameter of type esriTransformDirection shiftX [in] shiftX is a parameter of type double shiftY [in] shiftY is a parameter of type double
ApplyShift method append an xform to the existing PolynomialXform. To define a shift transformation to work with raster data using this method, you must define both forward and inverse transformations.
For example, to define a shift transformation, you need to call
pPolynomialXform.ApplyShift TransformationForward, 10
pPolynomialXform.ApplyShift TransformationReverse, -10