Loading...
Searching...
No Matches
Bitmap.h File Reference

Classes

class  Bitmap
 A thread-safe container for pixel data. More...
 
class  LockedPixels< T >
 Forward declaration for the LockedPixels class. More...
 

Namespaces

namespace  ultralight
 

Macros

#define GetBytesPerPixel(x)   (x == BitmapFormat::A8_UNORM ? 1 : 4)
 Macro to get the bytes per pixel from a BitmapFormat.
 

Typedefs

typedef void(* DestroyBitmapCallback) (void *user_data, void *data)
 Function signature for a user-defined destruction callback to be optionally called when the Bitmap is destroyed.
 

Enumerations

enum class  BitmapFormat : uint8_t { A8_UNORM , BGRA8_UNORM_SRGB }
 The various Bitmap formats. More...
 

Macro Definition Documentation

◆ GetBytesPerPixel

#define GetBytesPerPixel ( x)    (x == BitmapFormat::A8_UNORM ? 1 : 4)

Macro to get the bytes per pixel from a BitmapFormat.

Go to the source code of this file.