Example #1
0
        public WriteableBitmapExGraphics(int pixelWidth, int pixelHeight)
        {
            bmp = new WriteableBitmap(pixelWidth, pixelHeight);

            _fontMetrics = new WriteableBitmapExGraphicsFontMetrics();
            SetColor(Colors.Black);
            states.Push(new State {
                Transform = new Transform2D {
                    M11 = 1,
                    M22 = 1,
                    M33 = 1,
                },
            });
        }
        public WriteableBitmapExGraphics(int pixelWidth, int pixelHeight)
        {
            bmp = new WriteableBitmap (pixelWidth, pixelHeight);

            _fontMetrics = new WriteableBitmapExGraphicsFontMetrics ();
            SetColor (Colors.Black);
            states.Push (new State {
                Transform = new Transform2D {
                    M11 = 1,
                    M22 = 1,
                    M33 = 1,
                },
            });
        }