I've know how to capture screen in Capture screenshot of active window?, but I want to know how capture screen with certain angle. Thanks.
Asked
Active
Viewed 139 times
0
-
6What do you mean *exactly* by "with certain angle"? – Jon Skeet May 17 '12 at 06:17
-
Do you mean with certain coordinates ? – yahya kh May 17 '12 at 07:29
-
"with certain angle" means may the edges of captured rectangle image may not be paralleled with the edges of screen. – Cuero May 22 '12 at 07:19
1 Answers
0
Why don't you capture the screen in bitmap
and convert the bitmap into the rectangle shape you need?
Let's suppose you have the screen-capture as a bitmap originalbitmap
Now apply your rotations and transformations to the graphics context of your original image bitmap and store it in another bitmap originalbitmap2
Let's suppose you want to define and view a rectangular region of the rotated-bitmap. Store the rectangle information in : (say) rect1
Bitmap bmp = new Bitmap(<your width>,<your height>); //your final image bitmap
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(originalbitmap2,0,0,rect1,GraphicsUnit.Pixel);
g.Dispose();
Now, you can use this bitmap!

Subs
- 529
- 2
- 9