See the AddBorder and Copyright demos in the samples folder. To add a shadow around the frame you probably have to add ImageEnView1.Proc.AddSoftShadow after the frame is added in the AddBorder demo.
You can also try this:
procedure TForm1.CreateBorderedImage;
var
iOrigWidth: integer;
iOrigHeight: integer;
begin
ImageEnView2.Clear;
ImageEnView2.Assign(ImageEnView1);
iOrigWidth := ImageEnView1.IEBitmap.Width;
iOrigHeight := ImageEnView1.IEBitmap.Height;
// set background color
ImageEnView2.BackGround := BorderColor1.EditValue;
ImageEnView2.RemoveAlphaChannel();
// Symmetric
ImageEnView2.Proc.ImageResize(iOrigWidth + BorderWidth1.EditValue * 2, iOrigHeight +
BorderWidth1.EditValue * 2, iehCenter,
ievCenter);
if AddShadow1.Checked then
ImageEnView2.Proc.AddSoftShadow(BorderWidth1.EditValue, 5, 5, true, clblack, 100);
// restore background color
ImageEnView2.Background := clBtnFace;
ImageEnView2.Update;
end;
William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html