Bitmap.MakeTransparent

MakeTransparent()

Makes the specified color transparent for this Bitmap.

public void MakeTransparent()

See Also


MakeTransparent(Color)

Makes the specified color transparent for this Bitmap.

public void MakeTransparent(Color transparentColor)
ParameterTypeDescription
transparentColorColorThe Color structure that represents the color to make transparent.

Exceptions

exceptioncondition
InvalidOperationExceptionThe image format of the Bitmap is an icon format.
ExceptionThe operation failed.

See Also