On Wed, 8 Sep 2004, Pat Macleod wrote:

> I have not found any documentation of RasterStyle, but from some simple 

Here's what I got from MI tech support a while ago:

--- clip 'n save ----------------------
Information about RasterStyle tags:

Most of the RasterStyle tags are not required. All of the RasterStyle tags
have 2 numbers, the first representing an identifier, the second
representing the value. At this time, RasterStyle identifiers are in the
range 1-7.

RasterStyle 1 brightness_value - The brightness value can be from 0-100.
The default value of 50 will be used if this tag is not present. This
brightness value is used to alter the display of the image.

RasterStyle 2 contrast_value - The contrast value can be from 0-100. The
default value of 50 will be used if this tag is not present. This contrast
value is used to alter the display of the image.

RasterStyle 3 grayscale_value - The grayscale value determines whether the
image should be displayed in color or grayscale. The default value is 0.  
If the grayscale value is 1, the image will be displayed in grayscale
rather than in color. A value of 0 turns the grayscale display off.

RasterStyle 4 use_transparent_value - The value determines whether or not
to use the transparent color. Which color to use for transparency is
determined by another tag, RasterStyle 5 or RasterStyle 7. If the value is
1, transparency is turned on. If the value is 0, transparency is not used.
The default value is 0 if this tag is not specified.

RasterStyle 5 transparent_index_value - This tag is old and is being
phased out. The newer RasterStyle 7 tag should be used instead. The value
represents the color in the palette that should be treated as transparent.
There is no default value.

RasterStyle 6 grid_value - This tag determines whether the specified image
file is a raster or a grid. The default value is 0. If the value is 1, the
file is a grid. If the value is 0, the file is a raster. Normally, if the
file is a grid, this is the only specified RasterStyle tag because grids
store the display attributes as layer overrides in the workspace. This tag
is required for grids.

RasterStyle 7 transparent_color_value - This tag is the new and preferred
way to specify the transparent color for an image. There is no default.  
The value represents the RGB color which should be treated as transparent.
The value is stored as BBGGRR.

RasterStyle 8 Translucent_Alpha_value - This tag is used for determining
if image or grid uses translucency and what percentage of translucency is
applied.  The Alpha number can be anything between 0 and 255 (0 being
opaque and 255 being transparent).  If encountered in a version of MI Pro
earlier than 6.5 then this tag is ignored.

---

- Bill Thoen



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13257

Reply via email to