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