ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Layered Image Base Layer on top

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bmesser Posted - Oct 26 2012 : 02:07:20
Hi

I am using ImageENView component with layers to animate a series of satellite images.

Instead of displaying a base map layer to overlay a rainfall radar image I want to make the base layer always on top to overlay an outline of the coast on top of the satellite image. Is it just a case of keeping the outline layer above the satellite layer?

I just thought they might be a clever way that you could flip the base layer to be always be the last layer to be overlaid rather than the first?

Bruce.
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Oct 26 2012 : 14:31:54
// 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