GraphDocumentExportActionsConvertBitmapToPixelFormat Method |
Converts the given bitmap to another pixel format.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Bitmap ConvertBitmapToPixelFormat(
this Bitmap bitmapToConvert,
PixelFormat pixelFormat,
NamedColor backgroundColorForFormatsWithoutAlphaChannel
)
Parameters
- bitmapToConvert Bitmap
- The bitmap to convert.
- pixelFormat PixelFormat
- The pixel format of the converted bitmap.
- backgroundColorForFormatsWithoutAlphaChannel NamedColor
- The background color for pixel formats without alpha channel. This color is used to paint the background of the new bitmap if the new bitmap's pixel format has no alpha channel.
Return Value
BitmapConverted bitmap.
Usage Note
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).
See Also