Gamma Attribute

HTML (DHTML)

Gamma Attribute

Internet Development Index

Defines the amount of contrast for an image. Read/write VgNumber.

Applies To

ImageData

Tag Syntax

<v: element gamma="expression">

Script Syntax

element.gamma="expression"

expression=element.gamma

Remarks

Decreasing the gamma below 1 modifies an image to make it more contrasty, while values greater than 1 decrease the contrast. Useful values are from 0.3 to about 3. The default value is 0.

VML Standard Attribute

Example

The image has a higher contrast than normal.

   <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 gamma=".7" src="gamera.jpg"/>
   </v:shape>