CreateBackdrop

 

The CreateBackdrop method creates a color graded bitmap outline around boundary objects.

 

Syntax

object. CreateBackdrop( BackdropBasedOnAllLayers, SoftEdgeWidth, CreateBackdropOnAnotherLayer, LayerName, Depth, DropbackWidthInPixel, DropbackHeightInPixel, EdgeInnerColor, EdgeOuterColor )

 

Parameter

Type

Description

BackdropBasedOnAllLayers

Boolean

required; true to create backdrop for all visible layers, false to create the backdrop for boundaries on the active layer

SoftEdgeWidth

Double

required; backdrop soft edge width in the map window distance units

CreateBackdropOnAnotherLayer

Boolean

optional; true to place the backdrop on another layer, default is false

LayerName

String

optional; layer name if CreateBackdropOnAnotherLayer is true

Depth

MVColorDepth

optional; color depth, default is mvColorDepth24

DropbackWidthInPixel

Integer

optional; width in pixels, default is 1000

DropbackHeightInPixel

Integer

optional; height in pixels, default is 1000

EdgeInnerColor

MVColor

optional; edge inner color, default is mvColorBlack10

EdgeOuterColor

MVColor

optional; edge outer color, default is mvColorWhite

 

Remarks

Use the enumeration [mvColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color.

 

Example

    'CreateBackdrop

    'Create a base map layer of California and assign it to the variable "BaseMap"

    Set BaseMap = Plot.CreateBaseMap(FileName:=mvApp.ModuleFolder + "\Samples\CA2010.gsb")

 

    'Create a gradated image from blue (inside) to red (outside) for the boundaries

    Plot.CreateBackdrop(BackdropBasedOnAllLayers:=True, SoftEdgeWidth:=2, EdgeInnerColor:=mvColorBlue, EdgeOuterColor:=mvColorRed)

 

Used by: PlotDocument object