Utility.SetImageOpacity Method

Changes the opacity of an image.
Public Shared Function SetImageOpacity( _ 
ByVal image As Image, _ 
ByVal opacity As Single
) As Bitmap
This language is not supported or no code example is available.
public static Bitmap SetImageOpacity( 
Image image
float opacity 
)
This language is not supported or no code example is available.

Parameters

image
Image

The original image

opacity
float

The opacity (range 0-1)

Return Value

Bitmap

The new bitmap

.NET Framework

Supported in: 4.8

In this article

Definition