Maptitude GISDK Help |
Sets the display and interpolation specifications of an image layer.
direction = SetImageLayerOptions(string layer_name, array options)
Argument |
Contents |
layer_name |
The name of the image layer |
An options array with image parameter specifications.
Specification |
Type |
Contents |
Contrast |
Real |
A real number in the range 0 (white) to 1.0 (normal) |
Scale Down Smoothing |
Integer |
The maximal number of original pixels used for interpolating a single screen pixel when the screen resolution is lower than the original image resolution |
Interpolation Mode |
Integer |
Indicates the method used for interpolating extra pixels when the screen resolution is higher than the original image resolution. Possible modes: |
Transparency |
Real |
A value in the range 0 (opaque) to 1(fully transparent) |
Transparent Color |
Array |
A two-element array where the first element is a Color and the second is a number in the range 0 to 1.00 The color describes the transparent color and the number determines the variance to extend it to nearby colors (0.0 means just the color, 1.0 means the entire color spectrum). |
scale_down_smoothing <= 1 means no smoothing
Each screen pixel is a copy of a single original pixel. For any other value of scale_down_smoothing = n, each screen pixel is a mixture of up to n*n original pixels
Options not provided are not changed.
To clear transparent color, set a "Transparent Color" specification of an empty pair of values ({null, null}).
// Set the current image layer to be 75% transparent
SetImageLayerOptions(GetLayer(), {Transparency:0.75})
RedrawMap()
Error Type |
Meaning |
NotFound |
The layer does not exist |
Function |
Summary |
Gets the display and interpolation specifications of an image layer |
©2025 Caliper Corporation | www.caliper.com |