Returns or sets the opacity of the map image (GIF/PNG).


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Property ImageOpacity As Double
C#
public double ImageOpacity { get; set; }
C++
public property double ImageOpacity sealed  {
    double get();
    void set(double value);
}
J#
/** property */
public double get_ImageOpacity();

/** property */
public void set_ImageOpacity(double value);
JScript
public function get ImageOpacity() : double

public function set ImageOpacity(value : double);

Property Value

A double expression that represents the opacity level. Value must be between 0 and 1.

Remarks

The value of this property has different meaning depending on the image format:

  • GIF. ImageOpacity of 1 = opaque while ImageOpacity of 0 = transparent. The BackColor property of the Map specifies the transparent color.
  • PNG. ImageOpacity of 1 = opaque while ImageOpacity of 0 = transparent. The BackColor property of the Map specifies the transparent color. If the value is between 0 and 1, the map image will be semi-transparent, while the BackColor property of the Map still specifies the transparent color.
  • BMP. This format does not support opacity.
  • JPEG. This format does not support opacity.
Note
Please note that IE 6.0 does not support semi-transparent PNG images.

See Also