BitmapExtensionsSetBrightness(Bitmap, Single) Method
Adjusts the brightness of an Bitmap.
Namespace: DevCase.Extensions.BitmapExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Bitmap SetBrightness(
this Bitmap sender,
float brightness
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function SetBrightness (
sender As Bitmap,
brightness As Single
) As Bitmap
Dim sender As Bitmap
Dim brightness As Single
Dim returnValue As Bitmap
returnValue = sender.SetBrightness(brightness)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Bitmap^ SetBrightness(
Bitmap^ sender,
float brightness
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member SetBrightness :
sender : Bitmap *
brightness : float32 -> Bitmap
No code example is currently available or this language may not be supported.
- sender Bitmap
-
The source Bitmap.
- brightness Single
-
The brightness.
Value is from range 0.0F to 2.0F, where 1.0F is the current brightness.
Bitmap
The adjusted image.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Bitmap. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim srcImage As Image = Bitmap.FromFile("C:\File.png")
Dim modImage As Image = srcImage.SetBrightness(1.5F)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentOutOfRangeException
|
brightness;Value between range from 0.0 to 2.0 is required.
|