Click here to Skip to main content
15,867,765 members
Articles / Desktop Programming / MFC
Article

Fast screen, window, region and print screen capture

Rate me:
Please Sign up or sign in to vote.
1.39/5 (73 votes)
4 Dec 2002CPOL 332.7K   5K   67   64
Screen Snaper is an fast screen, window, region and print screen capture

Sample Image - ScreenSnaper.gif

Introduction

Screen Snaper is an simple application for Screen capture and snapshot. The application use exported function from library SnaperHelper.dll compatible with VC, VB, Delphi and other languages that can use DLL.

Snapshot features

  • Get Desktop window
  • Get Window on the Desktop
  • Get Region of the desktop
  • Trap Print Screen key

In Window and Region capture mode, an helper show the zoomed position under the cursor and the current color. These modes also include keys shortcut and pop menu to permit switch between mode and much more...

About demo

This demo application include source code for clients in VC and VB. The source code of library SnaperHelper.dll is not provided.

History

  • 8 december 2002 - Demo project updated. Now include missing SnaperHelper.lib and SnaperHelperLib.h.

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Canada Canada

Comments and Discussions

 
GeneralScreen capture fails for multiple instances Pin
vishalmore4-Oct-04 23:33
vishalmore4-Oct-04 23:33 
GeneralScreen capture Pin
angello16-Jun-04 4:06
angello16-Jun-04 4:06 
GeneralRe: Screen capture Pin
Anonymous1-Aug-04 0:09
Anonymous1-Aug-04 0:09 
GeneralRe: Screen capture Pin
Member 16179999-Jan-05 11:21
Member 16179999-Jan-05 11:21 
GeneralRe: Screen capture Pin
Shaheed Legion25-May-06 23:54
Shaheed Legion25-May-06 23:54 
Well , thanks , but I'm coding in pure C using the
win32 api.

I have something that looks like this :

<br />
HBITMAP hbm;<br />
HDC screendc;<br />
HDC imagedc;<br />
int w;<br />
int h;<br />
<br />
int init(void)<br />
{<br />
screendc = GetDC(NULL);<br />
imagedc = CreateCompatibleDC(screendc);<br />
w = GetSystemMetrics(SM_CXSCREEN);<br />
h = GetSystemMetrics(SM_CYSCREEN);<br />
<br />
hbm = CreateCompatibleBitmap(imagedc,w,h);<br />
ReleaseDC(NULL,screendc);<br />
}<br />
<br />
void CaptureSave(LPSTR szFname)<br />
{<br />
SelectObject(imagedc,hbm);<br />
screendc = GetDC(NULL);<br />
BitBlt(imagedc,0,0,w,h,screendc,0,0,SRCCOPY);<br />
ReleaseDC(NULL,screendc);<br />
<br />
ConvertSaveDIB(szFname,hbm);<br />
}<br />
<br />
void ConvertSaveDIB(LPSTR fn,HBITMAP bm)<br />
{<br />
//???<br />
//I have no idea how to convert from DDB to DIB....<br />
//I know how to save the file , but in C it's an altogether <br />
//different problem to get it into the right format...<br />
<br />
//I think I saw some code once to do this , but I forgot where...<br />
<br />
//Sorry guys , I wish I could be of more help... but I'm stuck on this<br />
//one as well....if anyone can help , it would be appreciated.<br />
}<br />


The tears shed in vain
and the hatred and pain
will be nothing but dust
at the end of the day
GeneralRe: Screen capture Pin
Shaheed Legion27-Nov-06 1:41
Shaheed Legion27-Nov-06 1:41 
GeneralVery well Pin
benni19-Mar-04 1:31
benni19-Mar-04 1:31 
Generalautoscroll feature Pin
ledang5-Jan-04 22:29
ledang5-Jan-04 22:29 
Generalsource code Pin
VK14-Dec-03 23:28
professionalVK14-Dec-03 23:28 
Generalregion coordinates Pin
hsiaod11-Jun-03 22:39
hsiaod11-Jun-03 22:39 
GeneralRe: region coordinates Pin
DCUtility12-Jun-03 2:22
professionalDCUtility12-Jun-03 2:22 
GeneralRe: region coordinates Pin
hsiaod12-Jun-03 9:57
hsiaod12-Jun-03 9:57 
GeneralRe: region coordinates Pin
obni19913-Dec-06 7:00
obni19913-Dec-06 7:00 
GeneralWhats it all about if source code is not provided... Pin
Devpro AB9-Jun-03 16:21
Devpro AB9-Jun-03 16:21 
GeneralRe: Whats it all about if source code is not provided... Pin
DCUtility9-Jun-03 16:52
professionalDCUtility9-Jun-03 16:52 
GeneralNice work Pin
mgama19-Feb-03 8:20
mgama19-Feb-03 8:20 
GeneralGood job!!! Pin
jedyking22-Jan-03 6:53
jedyking22-Jan-03 6:53 
GeneralRe: Good job!!! Pin
DCUtility23-Jan-03 11:22
professionalDCUtility23-Jan-03 11:22 
Generalvery poor Pin
Ahmed Ismaiel Zakaria6-Dec-02 8:37
Ahmed Ismaiel Zakaria6-Dec-02 8:37 
GeneralRe: very poor Pin
MaTrIX2k26-Dec-02 9:21
MaTrIX2k26-Dec-02 9:21 
GeneralRe: very poor Pin
#realJSOP6-Dec-02 14:39
mve#realJSOP6-Dec-02 14:39 
QuestionWhy ??? Pin
hugo20106-Dec-02 7:04
hugo20106-Dec-02 7:04 
GeneralIcon similar to Hyper-Snap Pin
Alexandru Savescu6-Dec-02 4:34
Alexandru Savescu6-Dec-02 4:34 
QuestionPlaySoundA ??? Pin
Andreas Saurwein6-Dec-02 3:51
Andreas Saurwein6-Dec-02 3:51 
GeneralIl manque des fichiers ! Pin
Maximilien6-Dec-02 3:32
Maximilien6-Dec-02 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.