[mapguide-users] transparency and gdal again

Frank Warmerdam warmerdam at pobox.com
Thu Feb 22 10:54:55 EST 2007


Traian Stanev wrote:
> For bitonal rasters, MapGuide takes the foreground and background colors
> as set by Studio directly without modification. So if the background
> color is set to transparent, it should really look transparent in the
> viewer. 
> 
> However, if the provider is not returning a 1-bpp raster and instead is
> using some other color format, then the colors set in Studio will not be
> used since the code will assume that the raster is not bitonal.

Traian,

Note that GDAL promotes 1bit TIFF rasters to being 8bit paletted images with
0 and 1 set to black and white (or err, white and black?).  So if there
is special logic for 1bit foreground/background color it won't have any effect
when using the gdal provider.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapguide-users mailing list