ShowPicturizeDlg example for Delphi

procedure TForm1.ShowPicturizeDlg1Click(Sender: TObject); 
var
   nRet: L_INT; 
begin
   LEADDlgImgEffect1.BitmapWidth:= LEADImage1.BitmapWidth; 
   LEADDlgImgEffect1.BitmapHeight:= LEADImage1.BitmapHeight; 
   nRet:= LEADDlgImgEffect1.ShowPicturizeDlg ( Self ); 
   if ( nRet = SUCCESS_DLG_OK ) then
   begin
      LEADImage1.Picturize ( LEADDlgImgEffect1.DirectoryPath
                             LEADDlgImgEffect1.PicturizeResizeFlags
                             LEADDlgImgEffect1.CellWidth
                             LEADDlgImgEffect1.CellHeight ); 
   end; 
end;