32#ifndef _NETSURF_BITMAP_H_
33#define _NETSURF_BITMAP_H_
169 unsigned char *(*get_buffer)(
void *
bitmap);
nserror
Enumeration of error codes.
bool bitmap_test_opaque(void *bitmap)
Test whether a bitmap is completely opaque (no transparency).
void bitmap_set_format(const bitmap_fmt_t *bitmap_format)
Set client bitmap format.
struct bitmap_fmt bitmap_fmt_t
Bitmap format specifier.
gui_bitmap_flags
Bitmap creation flags.
@ BITMAP_CLEAR
memory should be wiped to 0
@ BITMAP_OPAQUE
image is opaque
bitmap_layout
NetSurf bitmap pixel layout.
@ BITMAP_LAYOUT_ABGR8888
32-bit BGRA (0xAABBGGRR).
@ BITMAP_LAYOUT_BGRA8888
32-bit BGRA (0xBBGGRRAA).
@ BITMAP_LAYOUT_ARGB8888
32-bit ARGB (0xAARRGGBB).
@ BITMAP_LAYOUT_B8G8R8A8
Bite-wise BGRA: Byte order: 0xBB, 0xGG, 0xRR, 0xAA.
@ BITMAP_LAYOUT_R8G8B8A8
Bite-wise RGBA: Byte order: 0xRR, 0xGG, 0xBB, 0xAA.
@ BITMAP_LAYOUT_A8B8G8R8
Bite-wise ABGR: Byte order: 0xAA, 0xBB, 0xGG, 0xRR.
@ BITMAP_LAYOUT_A8R8G8B8
Bite-wise ARGB: Byte order: 0xAA, 0xRR, 0xGG, 0xBB.
@ BITMAP_LAYOUT_RGBA8888
32-bit RGBA (0xRRGGBBAA).
bool pma
Premultiplied alpha.
enum bitmap_layout layout
Colour component layout.
RISC OS wimp toolkit bitmap.
Content which corresponds to a single URL.
void(* set_opaque)(void *bitmap, bool opaque)
Set the opacity of a bitmap.
int(* get_height)(void *bitmap)
Get the bitmap height.
void(* destroy)(void *bitmap)
Destroy a bitmap.
nserror(* render)(struct bitmap *bitmap, struct hlcache_handle *content)
Render content into a bitmap.
int(* get_width)(void *bitmap)
Get the bitmap width.
size_t(* get_rowstride)(void *bitmap)
Get the number of bytes per row of the image.
bool(* get_opaque)(void *bitmap)
Get the opacity of a bitmap.
void(* modified)(void *bitmap)
Marks a bitmap as modified.
static nserror bitmap(const struct redraw_context *ctx, struct bitmap *bitmap, int x, int y, int width, int height, colour bg, bitmap_flags_t flags)
Plot a bitmap.