This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IT > ITransformationOp Interface > ITransformationOp.Rotate Method (ArcObjects .NET 10.4 SDK) |
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 );
Optional Values
[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
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 |