GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / GetBitmapFromCollection Method / GetBitmapFromCollection(IGoCollection,RectangleF,Single,Boolean) Method
The portion of the rendering, in document coordinates
The scale at which to draw; 1.0 is normal
Whether to call PaintPaperColor for the background
In This Topic
    GetBitmapFromCollection(IGoCollection,RectangleF,Single,Boolean) Method
    In This Topic
    Return a Bitmap displaying all of the visible objects in the given collection that paint within the given bounds.
    Syntax
    public virtual Bitmap GetBitmapFromCollection( 
       IGoCollection coll,
       RectangleF bounds,
       float scale,
       bool paper
    )

    Parameters

    coll
    bounds
    The portion of the rendering, in document coordinates
    scale
    The scale at which to draw; 1.0 is normal
    paper
    Whether to call PaintPaperColor for the background

    Return Value

    A Bitmap
    Remarks
    This method creates a Bitmap whose size is determined by bounds multiplied by the scale (minimum 1x1), that displays what is painted starting at the rectangle's top-left position in the document. It calls PaintPaperColor to fill in the bitmap and then calls GoObject.Paint for each object in coll whose GoObject.CanView property is true.

    Unlike the other GetBitmapFromCollection(IGoCollection) methods, this method does not automatically limit the size of the Bitmap based on the bounds and scale values.

    See Also