Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / GetContentRect Method / GetContentRect(Color) Method
The background color.

In This Topic
    GetContentRect(Color) Method
    In This Topic
    Returns the coordinates of a rectangle with colors different from background.
    Public Overloads Function GetContentRect( _
       ByVal bgColor As System.Drawing.Color _
    ) As System.Drawing.Rectangle
    public System.Drawing.Rectangle GetContentRect( 
       System.Drawing.Color bgColor


    The background color.

    Return Value

    A part of the source image excluding the margins with background color.
    See Also