API Reference
Class
BmpWriter
Writes BMP images from RGBA buffers.
Inheritance
- Object
- BmpWriter
Methods
WriteRgb24 2 overloads
public static Byte[] WriteRgb24(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
Byte[]Writes a BMP (24-bit BGR) byte array from an RGBA buffer (alpha discarded).
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
public static Void WriteRgb24(Stream stream, Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
VoidWrites a BMP (24-bit BGR) to a stream from an RGBA buffer (alpha discarded).
Parameters
- stream System.IO.Stream
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
WriteRgba32 2 overloads
public static Byte[] WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
Byte[]Writes a BMP (32-bit BGRA) byte array from an RGBA buffer.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
public static Void WriteRgba32(Stream stream, Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Returns:
VoidWrites a BMP (32-bit BGRA) to a stream from an RGBA buffer.
Parameters
- stream System.IO.Stream
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32