This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > II > IImageDisplay2 Interface > IImageDisplay2.Width Property (ArcObjects .NET 10.5 SDK) |
The width of the image in pixels.
[Visual Basic .NET] Public Property Width As Integer
[C#] public int Width {get; set;}
[C++]
HRESULT get_Width(
long* imageWidth
);
[C++]
HRESULT put_Width(
long imageWidth
);
[C++]
Parameters imageWidth [out, retval] imageWidth is a parameter of type long imageWidth [in] imageWidth is a parameter of type long
When setting a value for Width it is important to note that the result depends on a number of variables such as the method being used, the output Format and the DeviceResolution. Please review the remarks for ExportMapImage and ExportLayout for more information.
In order to control the size of an exported map image, IMapServerInit2 contains two properties: MaxImageHeight and MaxImageWidth . The default value for these properties is 2048 pixels.