Board index » delphi » Drawing bitmap outside form

Drawing bitmap outside form

Hello!
 I have a TBitmap which i need to draw on area outside the form.
How to do it?

--
Vjacheslav Trushkin.

 

Re:Drawing bitmap outside form


Quote
>Hi Arminio,
>Is transparent a new property of TForm? I use D3 and I don't have it!

No ! You need to do it using API stuff ... I don't know exactly the
way but you can find many examples at Internet (try www.torry.net).

Arminio.Gr...@USA.Net
http://www.geocities.com/SiliconValley/Way/9629/arminio.htm

Re:Drawing bitmap outside form


well, the only thing I know is how to draw an image to the desktop handle
(and that's outside the form):

procedure TForm1.Button1Click(Sender: TObject);
var
  Canvas: TCanvas;
begin
  Canvas := TCanvas.Create;
  Canvas.Handle := GetDC(0);
  Canvas.Draw(0,0,Bitmap1.Picture.Graphic);
end;

just as simple as that...

Quote
Vjacheslav Trushkin wrote:

> Hello!
>  I have a TBitmap which i need to draw on area outside the form.
> How to do it?

> --
> Vjacheslav Trushkin.

--
Posted via CNET Help.com
http://www.help.com/

Other Threads