Table of Contents

Method ConvertARGB32

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

ConvertARGB32()

Creates a new ImageBuffer with pixel data converted to 32-bit ARGB (ARGB32).

public ImageBuffer ConvertARGB32()

Returns

ImageBuffer

A new ImageBuffer instance with ARGB32 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 ARGB32, this method produces a deep copy of the image data.

Exceptions

InvalidOperationException

Thrown if the native conversion fails.