[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.ConvertToOpaque

ConvertToOpaque Method

ConvertToOpaque(Color)

Converts an image with transparent or semitransparent pixels to fully opaque with specified background color.

Declaration
public void ConvertToOpaque(Color backColor)
Public Sub ConvertToOpaque(backColor As Color)
Parameters
Type Name Description
Color backColor

The color to be used as background for transparent pixels.

ConvertToOpaque(Color, Rectangle)

Converts a part of semitransparent image to opaque with specified background color.

Declaration
public void ConvertToOpaque(Color backColor, Rectangle clipRect)
Public Sub ConvertToOpaque(backColor As Color, clipRect As Rectangle)
Parameters
Type Name Description
Color backColor

The color to be used as background for transparent pixels.

Rectangle clipRect

The target rectangle of the GcBitmap.