ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi Namespace / Graphics Class / FromGdiplusGraphics Method / FromGdiplusGraphics(Graphics,Boolean) Method
A System.Drawing.Graphics indicates the gdi+ graphics.
A bool indicate whether kept original clip region of gdip graphics

In This Topic
    FromGdiplusGraphics(Graphics,Boolean) Method
    In This Topic
    Creates a new gdi graphics from a gdi+ graphics. This method kept the clip region, but remains low performance, when keptClipRegion is set to true.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromGdiplusGraphics( _
       ByVal gdiplusGraphics As Graphics, _
       ByVal keptClipRegion As Boolean _
    ) As Graphics
    public static Graphics FromGdiplusGraphics( 
       Graphics gdiplusGraphics,
       bool keptClipRegion
    )

    Parameters

    gdiplusGraphics
    A System.Drawing.Graphics indicates the gdi+ graphics.
    keptClipRegion
    A bool indicate whether kept original clip region of gdip graphics

    Return Value

    Returns a Graphics that indicates the gdi graphics.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also