[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.GetContentRect

GetContentRect Method

GetContentRect(Color)

Returns the coordinates of a rectangle with colors different from background.

Declaration
public Rectangle GetContentRect(Color bgColor)
Public Function GetContentRect(bgColor As Color) As Rectangle
Parameters
Type Name Description
Color bgColor

The background color.

Returns
Type Description
Rectangle

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

GetContentRect(uint)

Returns the coordinates of a rectangle with colors different from background.

Declaration
public Rectangle GetContentRect(uint bgColor)
Public Function GetContentRect(bgColor As UInteger) As Rectangle
Parameters
Type Name Description
uint bgColor

The background color.

Returns
Type Description
Rectangle

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