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); }
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)); }