Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Event handling Object reference error Pin
Uri Lavi19-Jul-09 22:49
Uri Lavi19-Jul-09 22:49 
AnswerRe: Event handling Object reference error Pin
DaveyM6919-Jul-09 23:04
professionalDaveyM6919-Jul-09 23:04 
GeneralRe: Event handling Object reference error Pin
gwithey19-Jul-09 23:24
gwithey19-Jul-09 23:24 
AnswerRe: Event handling Object reference error Pin
Luc Pattyn20-Jul-09 0:46
sitebuilderLuc Pattyn20-Jul-09 0:46 
QuestionImpersonation Pin
arkiboys19-Jul-09 21:37
arkiboys19-Jul-09 21:37 
Questioncompress bytes Pin
shekhar25839519-Jul-09 21:35
shekhar25839519-Jul-09 21:35 
AnswerRe: compress bytes Pin
0x3c019-Jul-09 21:41
0x3c019-Jul-09 21:41 
QuestionMost efficient way of taking a screenshot? [modified] Pin
Trapper-Hell19-Jul-09 21:15
Trapper-Hell19-Jul-09 21:15 
The Subject says it all... At the moment I am using the following method:

Bitmap bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);

Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);

gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);


However, since I need to be taking screenshots at around every 250ms, I need to find the most efficient way possible (if any)...

Thanks!

Note: I have found that taking partial parts of the screen is much more efficient, but at the moment I need all the screen taken...

modified on Monday, July 20, 2009 3:22 AM

Answerrepost. ignore. Pin
Luc Pattyn20-Jul-09 0:49
sitebuilderLuc Pattyn20-Jul-09 0:49 
GeneralRe: repost. ignore. Pin
Trapper-Hell20-Jul-09 2:31
Trapper-Hell20-Jul-09 2:31 
Questionconvert image in bytes Pin
shekhar25839519-Jul-09 20:57
shekhar25839519-Jul-09 20:57 
AnswerRe: convert image in bytes Pin
stancrm19-Jul-09 21:12
stancrm19-Jul-09 21:12 
Questionpicturebox help Pin
mjawadkhatri19-Jul-09 20:48
mjawadkhatri19-Jul-09 20:48 
AnswerRe: picturebox help Pin
PandemoniumPasha19-Jul-09 21:47
PandemoniumPasha19-Jul-09 21:47 
GeneralRe: picturebox help Pin
mjawadkhatri19-Jul-09 21:49
mjawadkhatri19-Jul-09 21:49 
GeneralRe: picturebox help Pin
PandemoniumPasha19-Jul-09 21:51
PandemoniumPasha19-Jul-09 21:51 
GeneralRe: picturebox help Pin
mjawadkhatri19-Jul-09 22:14
mjawadkhatri19-Jul-09 22:14 
Questionimport contacts from hotmail using c# Pin
Charan Pat19-Jul-09 20:48
Charan Pat19-Jul-09 20:48 
AnswerRe: import contacts from hotmail using c# Pin
Ashfield19-Jul-09 21:37
Ashfield19-Jul-09 21:37 
GeneralRe: import contacts from hotmail using c# Pin
Charan Pat19-Jul-09 21:49
Charan Pat19-Jul-09 21:49 
AnswerRe: import contacts from hotmail using c# Pin
Blue_Boy19-Jul-09 22:52
Blue_Boy19-Jul-09 22:52 
GeneralRe: import contacts from hotmail using c# Pin
Charan Pat19-Jul-09 23:08
Charan Pat19-Jul-09 23:08 
AnswerRe: import contacts from hotmail using c# Pin
Member 21860869-Aug-10 22:20
Member 21860869-Aug-10 22:20 
QuestionCreate a call Back to button control in Ribbon Pin
mandar77719-Jul-09 20:45
mandar77719-Jul-09 20:45 
GeneralRe: Create a call Back to button control in Ribbon Pin
mandar77720-Jul-09 18:51
mandar77720-Jul-09 18:51 

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.