Esempio n. 1
0
 private void CreateReferenceImage(int width, int height, Action <Canvas> renderMethod)
 {
     Pixmap.Layer image = this.RenderToTexture(width, height, renderMethod);
     image.SavePixelData(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "CanvasTestOutput.png"));
 }
Esempio n. 2
0
 private void CreateReferenceImage(string name, int width, int height, Action <Canvas> renderMethod)
 {
     Pixmap.Layer image = this.RenderToTexture(width, height, renderMethod);
     image.SavePixelData(TestHelper.GetEmbeddedResourcePath(name, ".png"));
 }