Skip to content

LayerDrawnEventArgs

Namespace: ThinkGeo.Core

Provides data for the MapEngine.LayerDrawn event, which fires after an individual layer finishes drawing.

public class LayerDrawnEventArgs : System.EventArgs

Inheritance ObjectEventArgsLayerDrawnEventArgs

Remarks:

Handle this event to inspect the rendered layer, perform additional drawing, or access the underlying native image once rendering completes.

Properties

CurrentLayer

Gets or sets the layer that has just drawn.

public Layer CurrentLayer { get; set; }

Property Value

Layer

WorldExtent

Gets or sets the world extent that describes the rendered area.

public RectangleShape WorldExtent { get; set; }

Property Value

RectangleShape

NativeImage

Gets or sets the native image handle or drawing surface used for rendering.

public object NativeImage { get; set; }

Property Value

Object

Constructors

LayerDrawnEventArgs()

Initializes a new instance of the LayerDrawnEventArgs class.

public LayerDrawnEventArgs()

Remarks:

When using this constructor, set the LayerDrawnEventArgs.CurrentLayer, LayerDrawnEventArgs.WorldExtent, and LayerDrawnEventArgs.NativeImage properties before raising the event.

LayerDrawnEventArgs(Layer, RectangleShape, Object)

Initializes a new instance of the LayerDrawnEventArgs class with the specified drawing details.

public LayerDrawnEventArgs(Layer currentLayer, RectangleShape worldExtent, object nativeImage)

Parameters

currentLayer Layer
The layer that has completed rendering.

worldExtent RectangleShape
The world extent that was used during rendering.

nativeImage Object
The native image handle or drawing surface the layer rendered to.