TPaintBox в буфер обмена

TPaintBox в буфер обмена Автор: Xavier Pacheco

var
 pbRect: TRect;
 BitMap:TBitMap;
begin
 pbRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height);
 BitMap := TBitMap.Create;
 try
  Bitmap.Width := PaintBox1.Width;
  Bitmap.Height := PaintBox1.Height;
  BitMap.Canvas.CopyRect(pbRect, PaintBox1.Canvas, pbRect);
  ClipBoard.Assign(BitMap);
 finally
  BitMap.Free;
 end;
end;
http://delphiworld.narod.ru/ DelphiWorld 6.0

Что делать если оператор ClipBoard не доступен

В раздел uses добавь модуль Clipbrd

Отправить комментарий

Проверка
Антиспам проверка
Image CAPTCHA
...