Exemple #1
0
        public RenderSequenceStep(RenderInvoker render, int sequenceIndex)
        {
            render.ThrowIfNull(nameof(render));

            Render        = render;
            SequenceIndex = sequenceIndex;
        }
 private void RenderImage(string fileName, RenderInvoker render)
 {
     using (var bmp = new Bitmap(256, 256, PixelFormat.Format32bppArgb))
         using (var target = new BitmapRenderTarget(bmp))
         {
             target.Fill(new RopeSnake.Graphics.Color(0, 0, 0, 0));
             render(target);
             bmp.Save(fileName);
         }
 }