Saving bitmap image from clipboard to file

Posted by koos on September 26, 2007

Hi everybody
Please help me. I managed to save an image from clipboard to file using:
if Clipboard.HasFormat(CF_BITMAP) then begin
Image1.Picture.Assign(Clipboard);
Image1.Picture.SaveToFile('c:\test\abc.bmp');
end;

How do I get it to save to a different file name and not overwrite the existing one (say abc,abc1,abc2etc.)

Thank you all for a marvelous job done.

Koos Louw

Related articles

       

Follow Ups