IMapTerritoryInfo.GetBitmap

Syntax

GetBitmap(Width: Integer; Height: Integer; Dpi: Double): IGxBitmap;

Parameters

Width - pixel width of the returned image.

Height - pixel height of the returned image.

Dpi - returned image resolution.

Description

The GetBitmap method returns the territory info graphic presentation by the specified parameters.

Example

Executing the example requires a form with the Button1 button, the UiMap component named UiMap1, the ImageBox1 component named ImageBox1 and the MapBox. The map must be connected to the UiMap1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Map: IMap;

TerrI: IMapTerritoryInfo;

Begin

Map := UiMap1.Map;

TerrI := New DxMapTerritoryInfo.Create;

Map.View.TerritoryInfo := TerrI;

TerrI.Layer := Map.Layers.FindByName("Regions");

ImageBox1.Image :=TerrI.GetBitmap(300, 150 ,96);

End Sub Button1OnClick;

After executing the example the graphic presentation of the territory info is loaded to the ImageBox1 component.

See also:

IMapTerritoryInfo