This document is archived and information here might be outdated.  Recommended version.


ITransformationOp.Rotate Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoAnalyst)  

ITransformationOp.Rotate Method

Rotates a raster around a point by a specified angle.

[Visual Basic .NET]
Public Function Rotate ( _
    ByVal GeoDataset As IGeoDataset, _
    ByVal resampleType As esriGeoAnalysisResampleEnum, _
    ByVal angle As Double, _
    [ByRef origin As Object] _
) As IGeoDataset
[C#]
public IGeoDataset Rotate (
    IGeoDataset GeoDataset,
    esriGeoAnalysisResampleEnum resampleType,
    double angle,
    ref object origin
);
[C#]

Optional Values

origin   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT Rotate(
  IGeoDataset* GeoDataset,
  esriGeoAnalysisResampleEnum resampleType,
  double angle,
  VARIANT* origin,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters GeoDataset [in]
GeoDataset is a parameter of type IGeoDataset resampleType [in]
resampleType is a parameter of type esriGeoAnalysisResampleEnum angle [in] angle is a parameter of type double origin [optional] origin is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. outGeoDataset [out, retval]
outGeoDataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

GeoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

resampleType

an esriGeoAnalysisResampleEnum specifing the resampling algorithm to be used when sampling a Raster

can be of type:

esriGeoAnalysisResampleBilinear - bilinear interpolation. This is Default.

esriGeoAnalysisResampleCubic - cubic convolution.

esriGeoAnalysisResampleNearest - nearest neighbor assignment.

angle 

The angle in degrees to rotate the raster. This can be any floating-point number.

[origin]

The pivot point to rotate the raster around.

The default is the lower left corner of input GeoDataset

See Also

ITransformationOp Interface