This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDisplayTransformation Interface > IDisplayTransformation.TransformRect Method (ArcObjects .NET 10.4 SDK) |
Transforms a rectangle from device to world space or vice versa. Use the flags specified by esriDisplayTransformEnum.
[Visual Basic .NET] Public Sub TransformRect ( _ ByVal mapRect As IEnvelope, _ ByRef devRect As tagRECT, _ ByVal options As Integer _ )
[C#] public void TransformRect ( IEnvelope mapRect, ref tagRECT devRect, ref int options );
[C++]
HRESULT TransformRect(
IEnvelope* mapRect,
tagRECT* devRect,
long options
);
[C++]
Parameters mapRect [in]
mapRect is a parameter of type IEnvelope devRect [in, out]
devRect is a parameter of type tagRECT options [in] options is a parameter of type long
TransformRect converts a rectangle from map units to device units or vice versa. Multiple options can be entered to control the direction of the transformation etc by added the values of constants from esriDisplayTransformationEnum. The values in esriDisplayTransformationEnum define the accepted values that can be used in the transformation.