// When you create the outline of the coast map, make everything on
// the map that is not a border transparent black.
// Load the base layer
ImageEnView1.LayersCurrent := 0;
ImageEnView1.IO.LoadFromFile('bordermap.png');
// Give the base layer a name:
ImageEnView1.Layers[0].Name := 'Border Map';
// Make the 'bordermap transparent (because you want it on top of other maps)
ImageEnView1.Proc.SetTransparentColors(TColor2TRGB(clBlack), TColor2TRGB(clBlack), 0);
Now load the rainfall layer:
iLayer := ImageEnView1.LayersAdd;
ImageEnView1.IO.LoadFromFile('RainFall Radar Image.png');
ImageEnView1.Layers[iLayer].Name := 'RainFall Radar Image';
//To move the baselayer (0- Border Map) over the RainFall Radar Image (layer 1) use LayersMove.
if (ImageEnView1.LayersCount > 1) {Layerscount should be 2 now) and (ImageEnView1.Layers[0].Name = 'Border Map') then
ImageEnView1.LayersMove(0,iLayer);
I tried this here with some quickly made outline and precipation maps and it seems to work.
Good luck!
William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html