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


IRasterGeometryProc2.WKSPointsMap2PixelTransform Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterGeometryProc2.WKSPointsMap2PixelTransform Method

Performs the map to pixel transformation.

[Visual Basic .NET]
Public Sub WKSPointsMap2PixelTransform ( _
    ByVal pointsCount As Integer, _
    ByRef inPoints As WKSPoint, _
    ByVal isForward As Boolean, _
    ByVal pRaster As IRaster, _
    ByRef outPoints As WKSPoint _
)
[C#]
public void WKSPointsMap2PixelTransform (
    int pointsCount,
    ref WKSPoint inPoints,
    ref bool isForward,
    ref IRaster pRaster,
    ref WKSPoint outPoints
);
[C++]
HRESULT WKSPointsMap2PixelTransform(
  long pointsCount,
  _WKSPoint* inPoints,
  VARIANT_BOOL isForward,
  IRaster* pRaster,
  _WKSPoint* outPoints
);
[C++]

Parameters pointsCount [in] pointsCount is a parameter of type long inPoints [in]
inPoints is a parameter of type _WKSPoint isForward [in] isForward is a parameter of type VARIANT_BOOL pRaster [in]
pRaster is a parameter of type IRaster outPoints [in, out]
outPoints is a parameter of type _WKSPoint

Product Availability

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

Remarks

The WKSPointsMap2PixelTransform method takes all the transformations on a Raster, and then performs transformations between map space and pixel space. This method works better for rasters with square cell size.

See Also

IRasterGeometryProc2 Interface