Exemplo n.º 1
0
        private static void SaveScreenshotFromResource(Resource res)
        {
            bool result = MyTextureData.ToFile(res, m_screenshot.Value.SavePath, m_screenshot.Value.Format);

            MyRenderProxy.ScreenshotTaken(result, m_screenshot.Value.SavePath, m_screenshot.Value.ShowNotification);
            m_screenshot = null;
        }
Exemplo n.º 2
0
 private unsafe static byte[] GetScreenData(Resource res, byte[] screenData, ImageFileFormat fmt)
 {
     return(MyTextureData.ToData(res, screenData, fmt));
 }