Method ConvertRGBA32
ConvertRGBA32()
Creates a new ImageBuffer with pixel data converted to 32-bit ARGB (RGBA32).
public ImageBuffer ConvertRGBA32()
Returns
- ImageBuffer
A new ImageBuffer instance with RGBA32 pixel data.
Remarks
When converting from GRAY8, each grayscale value is replicated across the red, green, and blue channels, and the alpha channel is set to 255 (fully opaque).
When converting from RGB, the alpha channel is added and set to 255.
If the image is already in RGBA32, this method produces a deep copy of the image data.Exceptions
- InvalidOperationException
Thrown if the native conversion fails.
- ObjectDisposedException
Thrown if this instance has been disposed.