screen scraping - C#: Need to render a form/control on an "imaginary" desktop -
OK, what I'm trying to do here. First of all, I will explain the end result, as a result I am trying to get it, there are other ideas about doing this.
I am creating a screen capture utility which only takes the screen shot of a window ... my window (which I have total programmatic control). However, this window can be very large compared to the computer on which the utility will run. The height, in particular, can reach up to several thousand pixels on a computer with 1024x768 resolution.
So I am trying to capture the entire window, though it is bigger than the screen. I am trying to achieve the end result of this.
A hypothetical solution is to render the form / control on any type of graphics or screen object, and instead of turning off the object's screen, instead of taking the screen shot of the physical desktop.
Basically I need to draw control over an imaginary screen which is present only in code and memory and I do not even know what to look for, so also consider whether Google (true search engine) It would be helpful to put
Any thoughts? thank you in advanced!
EDIT: I am using WinForms.
What technology you did not use to use your C # application, I'm assuming WPF
If your implementation uses WPF, then you should only assign it to a drawing image
with correct dimensions - or even an image in memory Use WPF printing capability to print window contents. That you may be able to optimize (if you are using WPF).
With a WinForms application, this is a bit complicated because WinForm controls do not always go well under higher resolution, and alignment problems. This refers to a UserControl printing, but you should be able to optimize the implementation for your purposes.
Comments
Post a Comment