Anybody who needs the (C++) source code of this dll, please email to njjane@21cn.com
James Khan
njjane@21cn.com
http://www.myf1.net/foxcryptor/
====================================================================================================
Important : To use PCT_DLL.dll, you must put it to your system directory or current directory!!!
--------------------------------------------------------------------------------
1 formtobmp
--------------------------------------------------------------------------------
Description:
Capture window or screen image into a bitmap file
Declaration:
Declare Integer formtobmp IN "PCT_DLL.dll" ;
integer hwnd,String bmpFileName
Parameters:
hwnd
Handle to the window to be saves to a bitmap file. If this parameter is zero, then saves desktop to a bitmap file.
bmpFileName
The bitmap filename to be save. Must include full path name.
Note:
The function returns a zero result on success,else 1 is returned.
Example in Visual FoxPro:
retVal = formtobmp(0,"c:\screen.bmp") && Save screen to file c:\screen.bmp
if retval = 0 && if success
messagebox("Capture screen ok! bmp file has been saved to file c:\screen.bmp")
endif
--------------------------------------------------------------------------------
2 formtobmpA
--------------------------------------------------------------------------------
Description:
Capture window or screen image into a bitmap file and specify an area of screen/window to save.
Parameters:
bmpFileName
The bitmap filename to be save. must include full path name.
nX
x-coord of upper-left corner of bitmap file
nX2
x-coord of lower-right corner of bitmap file
nY
y-coord of upper-left corner of bitmap file
nY2
y-coord of lower-right corner of bitmap file
Note:
The function returns a zero result on success,else 1 is returned.
Example in Visual FoxPro:
retVal = formtobmpA("c:\screen0.bmp",20,20,400,400) && Save screen to file c:\screen.bmp
if retval = 0
messagebox("Capture screen ok!")
else
messagebox("Failure!")
endif
--------------------------------------------------------------------------------
3 tojpeg
--------------------------------------------------------------------------------
Description:
Convert a bmp file to a jpg file
Parameters:
bmpfilename
BMP filename to be convert.
jpgfilename
JPEG filename
Note:
The function returns a zero result on success, else 1 is returned.
Example in Visual FoxPro:
retval = tojpeg("c:\screen.bmp","c:\screen.jpg") && Convert c:\screen.bmp to c:\screen.jpg
if retval = 0
messagebox("Convert bitmap to jpeg ok!")
else
messagebox("Failure!")
endif
--------------------------------------------------------------------------------
4 tobmp
--------------------------------------------------------------------------------
Description:
Convert a jpg file to a bmp file
Parameters:
jpgfilename
JPEG filename to be convert.
bmpfilename
BMP filename
Note:
The function returns a zero result on success, else 1 is returned.
Example in Visual FoxPro:
retval = tobmp("c:\screen.jpg","c:\screen2.bmp") && Convert c:\screen.jpg to c:\screen2.bmp
if retval = 0
messagebox("Convert jpeg to bitmap success!")
else
messagebox("Failure!")
endif
--------------------------------------------------------------------------------
5 getbmpdimension
--------------------------------------------------------------------------------
Description:
Get a dimensions of a bitmap
--------------------------------------------------------------------------------
6 getjpgdimension
--------------------------------------------------------------------------------
Description:
Get a dimensions of a jpeg file
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.