TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dany_uru
NA
2
0
get the image of a control even when it is not visible in screen
Apr 12 2005 7:53 AM
I'm looking for a way to get the image of a control even when it is not visible in screen (for example, when the form is minimized, or the control is under another control). This clasical way to capture screen image is not good : Graphics g1 = myControl.CreateGraphics(); Image myImage = new Bitmap(myControl.Width, myControl.Height, g1); Graphics g2 = Graphics.FromImage(myImage); IntPtr dc1 = g1.GetHdc(); IntPtr dc2 = g2.GetHdc(); BitBlt(dc2, 0, 0, myControl.Width, myControl.Height, dc1, 0, 0, 13369376); g1.ReleaseHdc(dc1); g2.ReleaseHdc(dc2); myImage.Save("c:\\Captured.jpg", ImageFormat.Jpeg); Any idea?? Thanks Daniel
Reply
Answers (
0
)
Windows Service Start Mode
C# + XML + nested loops