Changeset 1875


Ignore:
Timestamp:
3/1/2010 12:33:57 PM (4 years ago)
Author:
lowjoel
Message:

Include the mouse cursor in the screenshot as it is useful for debugging UI bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/BlackBox.cs

    r1874 r1875  
    309309            bitmap.CopyFromScreen(0, 0, 0, 0, rect.Size, CopyPixelOperation.SourceCopy); 
    310310 
     311            //Place the mouse pointer 
     312            Cursor.Current.Draw(bitmap, new Rectangle(Cursor.Position, Cursor.Current.Size)); 
     313 
    311314            //Save the bitmap to disk 
    312315            screenShot.Save(Path.Combine(dumpFolder, ScreenshotFileName), ImageFormat.Png); 
Note: See TracChangeset for help on using the changeset viewer.