Maptitude GISDK Help

SetImageLayerOptions()

Summary

Sets the display and interpolation specifications  of an image layer.

Syntax

direction = SetImageLayerOptions(string layer_name, array options)

Argument Contents
layer_name The name of the image layer

Returns

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 pixelsused for interpolating a singlescreen pixel when the screen resolution is lowerthan 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:
0 or 1 - Nearest Neighbor
2 - Bilinear
3 - High Quality Bilinear
4 - Bicubic
5 - High Quality Bicubic
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.00The color describes thetransparent color and the number determines the variance to extendit to nearby colors (0.0 means just the color, 1.0 meansthe entire color spectrum).

Notes

Example

// Set the current image layer to be 75% transparent
SetImageLayerOptions(GetLayer(), {Transparency:0.75})
RedrawMap()

Error Codes

Error Type Meaning
NotFound The layer does not exist

See Also

Function Summary
GetImageLayerOptions() Gets the display and interpolation specifications of an image layer

 

 

©2025 Caliper Corporation www.caliper.com