示例#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;
        }
示例#2
0
 private unsafe static byte[] GetScreenData(Resource res, byte[] screenData, ImageFileFormat fmt)
 {
     return(MyTextureData.ToData(res, screenData, fmt));
 }