|
| ESRI.ArcGIS.ADF.Web | |
| ToScreenRectangle Method | |
| See Also Example Send Feedback | |
| ESRI.ArcGIS.ADF.Web.Geometry Namespace > Envelope Class : ToScreenRectangle Method |
- transformationParams
| Visual Basic (Declaration) | |
|---|---|
Public Function ToScreenRectangle( _ ByVal transformationParams As TransformationParams _ ) As Rectangle | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Envelope Dim transformationParams As TransformationParams Dim value As Rectangle value = instance.ToScreenRectangle(transformationParams) | |
| C# | |
|---|---|
public Rectangle ToScreenRectangle( TransformationParams transformationParams ) | |
Parameters
- transformationParams
Return Value
Screen-rectangle of converted map envelope. This example converts a map envelope to a rectangle in screen pixel coordinates.
| C# | Copy Code |
|---|---|
ESRI.ArcGIS.ADF.Web.Geometry.Envelope mapEnvelope =
new ESRI.ArcGIS.ADF.Web.Geometry.Envelope(
25.0, -4.5, 27.0, -6.5);
// Get transformation parameters from the Map control
ESRI.ArcGIS.ADF.Web.Geometry.TransformationParams transParams =
Map1.GetTransformationParams(
ESRI.ArcGIS.ADF.Web.Geometry.TransformationDirection.ToScreen);
System.Drawing.Rectangle screenRectangle =
mapEnvelope.ToScreenRectangle(transParams); | |
| Visual Basic | Copy Code |
|---|---|
Dim mapEnvelope As New _ ESRI.ArcGIS.ADF.Web.Geometry.Envelope( _ 25.0, -4.5, 27.0, -6.5) ' Get transformation parameters from the Map control Dim transParams As ESRI.ArcGIS.ADF.Web.Geometry.TransformationParams = _ Map1.GetTransformationParams( _ ESRI.ArcGIS.ADF.Web.Geometry.TransformationDirection.ToScreen) Dim screenRectangle As System.Drawing.Rectangle = _ mapEnvelope.ToScreenRectangle(transParams) | |
The transformationParams may be obtained from the Map with Map.GetTransformationParams.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family