Esempio n. 1
0
        public Bitmap RenderToBitmap(int nTwipSize)
        {
            EPoint ptOffset;
            Bitmap bmp = Shape.RenderToBitmap(nTwipSize, this.CommandList, this.FillStyles, this.LineStyles, out ptOffset);

            if (bmp == null)
            {
                return(null);
            }
            this.Bounds = new ERectangle(0, 0, bmp.Width, bmp.Height);
            this.Bounds.Offset(ptOffset);
            //this.Bounds*=nTwipSize;
            return(bmp);
        }
Esempio n. 2
0
        public Bitmap RenderToBitmap(int twipSize, float ratio, out EPoint ptOffset)
        {
            ArrayList morphedCommands = this.CreateMorphedShape(ratio);

            return(Shape.RenderToBitmap(twipSize, morphedCommands, this.FillStyles, this.LineStyles, out ptOffset));
        }