BitmapExtensionsReplaceColor Method
Replaces the specified color in a 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 ReplaceColor(
this Bitmap sender,
Color oldColor,
Color newColor
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ReplaceColor (
sender As Bitmap,
oldColor As Color,
newColor As Color
) As Bitmap
Dim sender As Bitmap
Dim oldColor As Color
Dim newColor As Color
Dim returnValue As Bitmap
returnValue = sender.ReplaceColor(oldColor,
newColor)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Bitmap^ ReplaceColor(
Bitmap^ sender,
Color oldColor,
Color newColor
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ReplaceColor :
sender : Bitmap *
oldColor : Color *
newColor : Color -> Bitmap
No code example is currently available or this language may not be supported.
- sender Bitmap
-
The source Bitmap.
- oldColor Color
-
The old color.
- newColor Color
-
The new color.
Bitmap
The modified
Bitmap.
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).
NotImplementedException
|
Only PixelFormats that has 3 or 4 bytes-per-pixel are supported.
|