// Load an image layer and apply a pink border ImageEnView1.LayersAdd( ielkImage ); // Append an image layer ImageEnView1.IO.LoadFromFile('C:\New Zealand.jpg'); // Load image into the new/active layer ImageEnView1.CurrentLayer.BorderColor := $008000FF; ImageEnView1.CurrentLayer.BorderWidth := 3; ImageEnView1.Update();
// Set style properties to an orange border with yellow fill ImageEnView1.CurrentLayer.BorderColor := $004080FF; ImageEnView1.CurrentLayer.BorderWidth := 2; ImageEnView1.CurrentLayer.FillColor := clYellow; ImageEnView1.Update();
// Remove the border... ImageEnView1.CurrentLayer.BorderWidth := 0; ImageEnView1.Update();