Alpha blends an image with a background color;
Namespace: System.Extensions.DrawingAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static Image ToAlphaBlend(
this Image image,
int alpha,
Color backgroundColor
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ToAlphaBlend (
image As Image,
alpha As Integer,
backgroundColor As Color
) As Image |
Visual C++ |
---|
public:
[ExtensionAttribute]
static Image^ ToAlphaBlend(
Image^ image,
int alpha,
Color backgroundColor
) |
F# |
---|
static member ToAlphaBlend :
image : Image *
alpha : int *
backgroundColor : Color -> Image
|
Return Value
Type:
ImageA new
Image with the alpha blended image.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also