Board index » delphi » HELP!!!! BitBlt in Delphi

HELP!!!! BitBlt in Delphi

Can anyone tell me the proper syntax for the BitBlt procedure in Delphi?
 I've done it several times in Visual BASIC, but the syntax seems to be
somewhat different.  Can anyone give me an example of working syntax?

Please???

Thanks very much.
--
|-------------------------------------------------------------|
|           (__)   |   Kevin Procter   |                      |
|           (oo)   | Programmer/Writer |  Brought to you from |
|    /-------\/    |Ingersoll,  Ontario|     OXFORD COUNTY    |
|   / |     ||     |  SEE MY HOMEPAGE  |   the dairy capital  |
|  *  ||W---||     |   ADDRESS BELOW   |       of Canada      |
|     ^^    ^^|------------------------------|                |
|-------------|http://execulink.com/~kprocter|----------------|

 

Re:HELP!!!! BitBlt in Delphi


Quote
Kevin Procter wrote:

> Can anyone tell me the proper syntax for the BitBlt procedure in Delphi?
>  I've done it several times in Visual BASIC, but the syntax seems to be
> somewhat different.  Can anyone give me an example of working syntax?

> Please???

> Thanks very much.

Bitblt is defined in Windows.pas

function BitBlt(DestDC: HDC; X, Y, nWidth, Height: Integer; SrcDC: HDC;
  XSrc, YSrc: Integer; Rop: DWORD): BOOL; stdcall;

Hari

Re:HELP!!!! BitBlt in Delphi


Quote
Kevin Procter wrote:

> Can anyone tell me the proper syntax for the BitBlt procedure in Delphi?
>  I've done it several times in Visual BASIC, but the syntax seems to be
> somewhat different.  Can anyone give me an example of working syntax?

        Most of the time when you feel the urge to BitBlt you can just
CopyRect instead. As in

Canvas.Copyrect(rect(0,0,100,100),Canvas,rect(100,100,200,200));

        At first you think this is no good because you can't find the
raster operation parameter for CopyRect. You set the raster operation
by setting the CopyMode property of the destination Canvas.
        If you want to BitBlt instead you can type BitBlt somewhere and
hit F1 to see a descrition of the syntax - you can use a Canvas.Handle
for an hDC.

--
David Ullrich

?his ?s ?avid ?llrich's ?ig ?ile
(Someone undeleted it for me...)

Other Threads