BorderStyle example for Delphi

This example toggles the border style and repaints the image.

var
   sRet: Smallint;
begin
   if (LEADRasterView1.BorderStyle = 1) then
      LEADRasterView1.BorderStyle:= 0
   else
      LEADRasterView1.BorderStyle:= 1;
   LEADRasterView1.ForceRepaint (sRet);
end;