Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C# Wanna make a picture of a control.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Mon Apr 19, 2010 6:22 am    Post subject: C# Wanna make a picture of a control. Reply with quote

So like.

I would like to draw whatever is shown in a particual hidden control.

Controls I will use include but is not limited to webbrowser and some sort of svg player.

So my question is how do I do it?

I've tried to read the pixel color and I've tried to use the DrawBitmap function both failed (Becuase the control is not shown.)

Now I have no idea on how to continue.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Mon Apr 19, 2010 8:53 am    Post subject: Reply with quote

If the controls implement it, you can use Control.DrawToBitmap(). I'm curious though, why would you want to do this?
Edit: By the way, I checked, and DrawToBitmap does draw the control correctly even if the controls visibility property is set to false.

_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
Sneak
Grandmaster Cheater Supreme
Reputation: 0

Joined: 05 Nov 2008
Posts: 1895

PostPosted: Wed Apr 28, 2010 3:19 pm    Post subject: Reply with quote

You can try the PictureBox control
_________________
Back to top
View user's profile Send private message
1929394839292057839194958
Grandmaster Cheater Supreme
Reputation: 130

Joined: 22 Dec 2006
Posts: 1509

PostPosted: Wed Apr 28, 2010 4:15 pm    Post subject: Reply with quote

Sneak wrote:
You can try the PictureBox control
No. Really, no. You don't know what you're talking about.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Apr 28, 2010 4:38 pm    Post subject: Reply with quote

hmm

get the handle to the controls DC and then blit that to wherever i suppose.
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sat May 01, 2010 5:57 am    Post subject: Reply with quote

PrintWindow
This will copy the contents of the window to a DC. It does not work when the window is minimized. (There has been a thread in the past about getting the contents of those minimized windows and I think that it was not completely possible)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites