Hello all,
This might be a dumb question, but I can't figure out how to get an image from what is currently displayed in an SKGLControl. An SKPaintGLSurfaceEventArgs parameter is passed to the PaintSurface event handler which contains a reference to a Surface object that is used to draw the image displayed in the SKGLControl, but outside of the PaintSurface event handler, I can't figure out how to get the surface to take a snapshot of it and get the displayed image. The control exposes the DrawToBitmap method, but it returns an empty bitmap.
Can anyone point me to some code that gets the image displayed in the SKGLControl as a bitmap or image, or to the SKGLControl's surface? Basically, I need something that lets me get to the image currently being displayed.
Thanks!