[]
        
(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)
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)
Parameters
Type Name Description
Color backColor

The color to be used as background for transparent pixels.

Rectangle clipRect

The target rectangle of the GcBitmap.