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


IImageDisplay2.Width Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > II > IImageDisplay2 Interface > IImageDisplay2.Width Property
ArcGIS Developer Help

IImageDisplay2.Width Property

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(
  System.Int32* 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

Product Availability

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

Remarks

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.

See Also

IImageDisplay2 Interface