API Reference
Class
XpmWriter
Writes XPM (X Pixmap) images from RGBA buffers.
Inheritance
- Object
- XpmWriter
Methods
public static String WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride, String name = null, Nullable<Rgba32> foreground = null, Nullable<Rgba32> background = null) #Returns:
StringWrites an XPM string from an RGBA buffer.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
- name System.String = null
- foreground System.Nullable{CodeGlyphX.Rendering.Png.Rgba32} = null
- background System.Nullable{CodeGlyphX.Rendering.Png.Rgba32} = null
public static String WriteRgba32Scanlines(Int32 width, Int32 height, ReadOnlySpan<Byte> scanlines, Int32 stride, String name = null, Nullable<Rgba32> foreground = null, Nullable<Rgba32> background = null) #Returns:
StringWrites an XPM string from a PNG scanline buffer (filter byte per row).
Parameters
- width System.Int32
- height System.Int32
- scanlines System.ReadOnlySpan{System.Byte}
- stride System.Int32
- name System.String = null
- foreground System.Nullable{CodeGlyphX.Rendering.Png.Rgba32} = null
- background System.Nullable{CodeGlyphX.Rendering.Png.Rgba32} = null