Beispiel #1
0
        public static Bitmap RenderAsGDIBitmap(this IPixelBufferRenderable item)
        {
            Bitmap    b = new Bitmap(item.PreferedSizeInPixels.Width, item.PreferedSizeInPixels.Height);
            IRenderer r = new GDIPlusRenderer(b);

            item.Render(r, new Rectangle(0, 0, r.Width, r.Height));
            r.Close();

            return(b);
        }
Beispiel #2
0
 public static void Render(this IPixelBufferRenderable item, IRenderer r, Point location)
 {
     item.Render(r, new Rectangle(location.X, location.Y, item.PreferedSizeInPixels.Width, item.PreferedSizeInPixels.Height));
 }
Beispiel #3
0
 public static void Render(this IPixelBufferRenderable item, IRenderer r)
 {
     item.Render(r, new Rectangle(0, 0, item.PreferedSizeInPixels.Width, item.PreferedSizeInPixels.Height));
 }