BlackLevel Attribute

HTML (DHTML)

BlackLevel Attribute

Internet Development Index

Defines the intensity of black in an image. Read/write VgNumber.

Applies To

ImageData

Tag Syntax

<v: element blacklevel="expression">

Script Syntax

element.blacklevel="expression"

expression=element.blacklevel

Remarks

Allows the color level to be modified so that blacks appear as true blacks, and all other colors are visible as shades above black. The default value is 0. While any number between positive and negative infinity is permitted, values less than -0.5 will display as all black and values greater than 0.5 will display as all white.

VML Standard Attribute

Example

The image will be displayed with very dark tones.

   <v:shape id="rect01"
   coordorigin="0 0" coordsize="200 200"
   strokecolor="red"
   style="top:1;left:1;width:300;height:200"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:imagedata blacklevel="-0.2" src="kids.jpg"/>
   </v:shape>