Raster classes – Pitney Bowes MapXtreme User Manual

Page 313

Advertising
background image

Chapter 17: Working with Rasters and Grids

Raster Images

MapXtreme v7.1

320

Developer Guide

Below are the raster image formats supported in MapXtreme:

TIFF and GeoTIFF (*.tif)

MrSID (*.sid)

ECW (*.ecw)

Spot (*.bil)

JPEG (*.jpg)

JPEG2000 (*.jp2, *.j2K)

PCX (*.pcx)

GIF (*.gif)

Windows Bitmap (*.bmp)

PNG (*.png)

Photoshop (*.psd)

Targa (*.tga)

Windows Metafile (*.wmf)

Windows Enhance Metafile (*.emf)

Wireless BMP (.WBMP)

Vertical Mapper Continuous Grid (*.grd)

Vertical Mapper Classified Grid (*.grc)

ADRG - ARC Digitized Raster Graphics (*.gen)

ASRP - ARC Standard Raster Product (various file extensions)

CADRG - Compressed ARC Digitized Raster Graphics (*.gen)

CIB - Controlled Image Base (various file extensions)

NITF - National Imagery Transmission Format (*.ntf)

Additional raster formats may be supported on a system if a custom raster handler is installed.

Raster Classes

The main classes for raster images are MapInfo.Raster.RasterInfo and RasterRead. Style
information is handled by MapInfo.Style.RasterStyle.

RasterInfo provides information about the height and width of the image in pixels, raster format,
color depth, and registration information. See the RasterInfo sample application provided in
.\MapInfo\MapXtreme\7.x.x\Samples\Desktop\Features\RasterInfo

RasterRead is the class that reads the raster image and style information in order for the image to
be rendered.

RasterStyle is concerned with how the raster looks. You can control brightness and contrast, display
a color image as grayscale, set the transparency and translucency. MapXtreme supports
transparency for one color per image. That means that everywhere that color exists in the image it
will be invisible, which allows the layer below the image to show through. Translucency is the degree
of transparency for the entire image. If you need a layer below a raster image to show through, set a
high translucency (100 percent is transparent).

Raster columns are read only so you cannot permanently change their style. However you can
programmatically set and get the image’s attributes such as brightness, grayscale, and translucency.
See the RasterStyle class in the online Developer Reference.

Advertising