Screenshot cross-platform with Eto #1922
Unanswered
bllovesgnr
asked this question in
Q&A
Replies: 1 comment
-
|
What platform are you using? On macOS for example you need to give you app permission to capture the screen other than the current application, which should be a pop up initially but if you said no you need to go to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to take screenshot cross-platform with Eto.
After searching the document for a method similar to
CopyFromScreenon windows,I found
Screen.GetImagethat sounds like it can make a screenshot:Gets a copy of a portion of the screen as an imagedocument link: http://pages.picoe.ca/docs/api/html/M_Eto_Forms_Screen_GetImage.htm
so I tried this
Image img = screen.GetImage(new RectangleF(new SizeF(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height))); Console.Write(img);but it doesn't work, the returned image seems to be empty
Any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions