You can set the minimum layer dimensions in the ImageEnView1LayerNotify event:
procedure TForm1.ImageEnView1LayerNotify(Sender:
TObject; layer: Integer;
event: TIELayerEvent);
begin
if event = ielResized then
begin
if ImageEnView1.Layers[layer].Width < StrToInt(MinimumLayerWidth1.Text) then
begin
ShowMessage('The minumum layer width is ' + MinimumLayerWidth1.Text + '.');
ImageEnView1.Layers[layer].Width := StrToInt(MinimumLayerWidth1.Text);
ImageEnView1.Update;
end;
if ImageEnView1.Layers[layer].Height < StrToInt(MinimumLayerHeight1.Text) then
begin
ShowMessage('The minumum layer height is ' + MinimumLayerHeight1.Text + '.');
ImageEnView1.Layers[layer].Height := StrToInt(MinimumLayerHeight1.Text);
ImageEnView1.Update;
end;
end;
end;
William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html