ikvm.awt.NetGraphicsState.saveGraphics C# (CSharp) Method

saveGraphics() public method

public saveGraphics ( NetGraphics netG ) : void
netG NetGraphics
return void
        public void saveGraphics(NetGraphics netG)
        {
            if (netG == null )
            {
                return;
            }
            if (netG.g != null )
            {
                this.Transform = netG.g.Transform;
                this.Clip = netG.g.Clip;
                this.SmoothingMode = netG.g.SmoothingMode;
                this.PixelOffsetMode = netG.g.PixelOffsetMode;
                this.TextRenderingHint = netG.g.TextRenderingHint;
                this.InterpolationMode = netG.g.InterpolationMode;
                this.CompositingMode = netG.g.CompositingMode;
                savedGraphics = true;
            }
            if (netG.pen != null && netG.brush != null)
            {
                pen = (Pen)netG.pen.Clone();
                brush = (Brush)netG.brush.Clone();
            }
        }

Usage Example

Exemplo n.º 1
0
 protected void init(Graphics graphics)
 {
     NetGraphicsState state = new NetGraphicsState();
     state.saveGraphics(this);
     g = graphics;
     state.restoreGraphics(this);            
 }
All Usage Examples Of ikvm.awt.NetGraphicsState::saveGraphics