Interface IBitmapImage
- Namespace
- OFT.Rendering
- Assembly
- OFT.Rendering.dll
Raster image in a backend-neutral form, drawn with RenderContext.DrawStaticImage(IBitmapImage, Rectangle).
Backends read the raw pixel rows from GetData().
public interface IBitmapImage
- Extension Methods
Properties
PixelFormat
Gets the pixel format of the data returned by GetData(). The Skia-based backends treat the data as 32-bit BGRA with premultiplied alpha regardless of this value.
PixelFormat PixelFormat { get; }
Property Value
- PixelFormat
Size
Gets the image size in pixels.
Size Size { get; }
Property Value
- Size
Methods
GetData()
Returns the pixel data row by row, top row first; the row stride is the data length divided by the image height.
ReadOnlySpan<byte> GetData()
Returns
- ReadOnlySpan<byte>
The pixel data.