Already done,
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls,
ExtCtrls, windows;
procedure captureScreen;
var
MyBitmap: Graphics.TBitmap;
ScreenDC: HDC;
begin
MyBitmap := Graphics.TBitmap.Create;
try
Mybitmap.Canvas.CopyMode:= cmSrcInvert; //OK
ScreenDC := GetDC(0);
MyBitmap.LoadFromDevice(ScreenDC);
.
finally
ReleaseDC(ScreenDC); <-- error wrong number of parameters
end;
end;
I haven't found what the parameters have to be this way
Paul
----- Original Message -----
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org>
Sent: Sunday, September 14, 2008 12:11 AM
Subject: Re: [fpc-pascal] WinCE api calls info
On Sat, Sep 13, 2008 at 6:17 PM, Paul <[EMAIL PROTECTED]> wrote:
when I remove Windows from the uses clause, then TBitmap.create is OK.
But then HDC is not anymore
Try specifing Graphics.TBitmap
--
Felipe Monteiro de Carvalho
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal