PurplePen.PrintArea.UpdateUnknownPageSize C# (CSharp) Method

UpdateUnknownPageSize() public method

public UpdateUnknownPageSize ( RectangleF mapBounds, float scaleRatio ) : void
mapBounds System.Drawing.RectangleF
scaleRatio float
return void
        public void UpdateUnknownPageSize(RectangleF mapBounds, float scaleRatio)
        {
            if (pageWidth <= 0 || pageHeight <= 0) {
                RectangleF printArea;
                if (autoPrintArea)
                    printArea = mapBounds;  // best we can do now for picking the page size.
                else
                    printArea = this.printAreaRectangle;

                MapUtil.GetDefaultPageSize(printArea, scaleRatio, out pageWidth, out pageHeight, out pageMargins, out pageLandscape);
            }
        }