Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Attributes | List of all members
RPixelBufferInfo Struct Reference

Describes a pixel buffer. More...

#include <RImage.h>

Public Attributes

SkISize size
 Size of the buffer in pixels.
 
UInt32 stride
 Number of bytes per row in the buffer.
 
RFormat format
 Format of the pixel buffer.
 
UInt8 * pixels
 Pointer to the top-left corner of the pixel data.
 
SkAlphaType alphaType { kUnknown_SkAlphaType }
 Alpha type of the pixel data.
 

Detailed Description

Describes a pixel buffer.

Contains metadata and a pointer to the raw pixel data for an image buffer.

Member Data Documentation

◆ size

SkISize size

Size of the buffer in pixels.

◆ stride

UInt32 stride

Number of bytes per row in the buffer.

◆ format

RFormat format

Format of the pixel buffer.

◆ pixels

UInt8* pixels

Pointer to the top-left corner of the pixel data.

◆ alphaType

SkAlphaType alphaType { kUnknown_SkAlphaType }

Alpha type of the pixel data.

Defaults to kUnknown_SkAlphaType.