Inheritance: ImageReaderWriterBase
Beispiel #1
0
        public void Fill(ActualImage img, int x, int y)
        {
            var imgReadWrite = new MyImageReaderWriter();

            imgReadWrite.ReloadImage(img);
            Fill(imgReadWrite, x, y);
        }
        public ImageGraphics2D(ActualImage destImage)
        {
            //create from actual image
            this.destImage = destImage;

            this.destActualImage = destImage;
            this.destImageReaderWriter = new MyImageReaderWriter();
            destImageReaderWriter.ReloadImage(destImage);
            this.sclineRas = new ScanlineRasterizer();
            this.sclineRasToBmp = new ScanlineRasToDestBitmapRenderer();
            this.destWidth = destImage.Width;
            this.destHeight = destImage.Height;
            this.clipBox = new RectInt(0, 0, destImage.Width, destImage.Height);
            this.sclineRas.SetClipBox(this.clipBox);
            this.sclinePack8 = new ScanlinePacked8();
            this.currentBlender = this.pixBlenderRGBA32 = new PixelBlenderBGRA();
        }
        public ImageGraphics2D(ActualImage destImage)
        {
            //create from actual image
            this.destImage = destImage;

            this.destActualImage       = destImage;
            this.destImageReaderWriter = new MyImageReaderWriter();
            this.destImageReaderWriter.ReloadImage(destImage);
            //
            this.sclineRas      = new ScanlineRasterizer();
            this.sclineRasToBmp = new ScanlineRasToDestBitmapRenderer();
            //
            this.destWidth  = destImage.Width;
            this.destHeight = destImage.Height;
            //
            this.clipBox = new RectInt(0, 0, destImage.Width, destImage.Height);
            this.sclineRas.SetClipBox(this.clipBox);
            this.sclinePack8    = new ScanlinePacked8();
            this.currentBlender = this.pixBlenderRGBA32 = new PixelBlenderBGRA();
        }
Beispiel #4
0
 public void Fill(ActualImage img, int x, int y)
 {
     var imgReadWrite = new MyImageReaderWriter();
     imgReadWrite.ReloadImage(img);
     Fill(imgReadWrite, x, y);
 }