IMapIconScale.ApplyEx

Syntax

ApplyEx(Value: Variant): IGxImage;

Parameters

Value - value that needs the scale to be applied to.

Description

The ApplyEx method applies the scale to the specified value.

Example

Executing the example requires a form, a button named Button1 on the form, the UiMap component named UiMap1 that is a data source for the MapBox component. The UiMap1 component needs to have the connected map, the Regions layer of which contains only the icon indicator, that uses the scale. The form must also contain the ImageBox component with the ImageBox1 identifier.

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

Var

Map: IMap;

Layer: IMapLayer;

ImageVisual: IMapImageVisual;

ImageProp: IMapVisualIconProperty;

Scale: IMapIconScale;

Begin

Map := UiMap1.Map;

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

ImageVisual := Layer.Visuals.Item(0) As IMapImageVisual;

ImageProp := ImageVisual.Image;

Scale := ImageProp.Scale;

ImageBox1.Image := Scale.ApplyEx(49);

End Sub Button1OnClick;

After executing the example the image that corresponds to the specified scale value is loaded to the ImageBox component.

See also:

IMapIconScale