186BANJO_EXPORT
bj_bitmap* bj_bitmap_new_from_pixels(
245BANJO_EXPORT
bj_bitmap* bj_bitmap_convert(
282BANJO_EXPORT
void bj_bitmap_reset(
292BANJO_EXPORT
void* bj_bitmap_pixels(
302BANJO_EXPORT
size_t bj_bitmap_width(
312BANJO_EXPORT
size_t bj_bitmap_height(
322BANJO_EXPORT
int bj_bitmap_mode(
332BANJO_EXPORT
size_t bj_bitmap_stride(
347BANJO_EXPORT
void bj_bitmap_rgb(
366BANJO_EXPORT uint32_t bj_bitmap_pixel_value(
381BANJO_EXPORT
void bj_bitmap_put_pixel(
397BANJO_EXPORT
void bj_bitmap_clear(
411BANJO_EXPORT
void bj_bitmap_set_colorkey(
433BANJO_EXPORT uint32_t bj_bitmap_get(
445BANJO_EXPORT
void bj_bitmap_set_clear_color(
483BANJO_EXPORT
bj_bool bj_bitmap_blit(
511BANJO_EXPORT
bj_bool bj_bitmap_blit_stretched(
535 BJ_MASK_BG_TRANSPARENT = 0,
537 BJ_MASK_BG_REV_TRANSPARENT
572BANJO_EXPORT
bj_bool bj_bitmap_blit_mask(
743BANJO_EXPORT
void bj_bitmap_blit_text(
750 bj_mask_bg_mode mode,
General-purpose definitions for Banjo API.
Recoverable error handling.
void bj_bitmap_print(bj_bitmap *dst, int x, int y, unsigned height, uint32_t fg_native, const char *text)
Prints text using the default foreground color and transparent background.
bj_bitmap * bj_bitmap_alloc(void)
Allocate a new bitmap object.
bj_bitmap * dst
Definition bitmap.h:575
void bj_bitmap_del(bj_bitmap *p_bitmap)
Deletes a bj_bitmap object and releases associated memory.
void bj_bitmap_printf(bj_bitmap *p_bitmap, int x, int y, unsigned height, uint32_t fg_native, const char *fmt,...)
Prints formatted text into a bitmap, similar to printf.
bj_blit_op
Raster operation (ROP) to apply during blitting.
Definition bitmap.h:28
bj_bitmap * bj_bitmap_new(size_t width, size_t height, bj_pixel_mode mode, size_t stride)
Creates a new bj_bitmap with the specified width and height.
struct bj_bitmap_t bj_bitmap
Typedef for the bj_bitmap struct.
Definition bitmap.h:40
bj_bitmap * bj_bitmap_new_from_file(const char *p_path, bj_error **p_error)
Creates a new bitmap by loading from a file.
bj_bool bj_bitmap_blit_mask_stretched(const bj_bitmap *mask, const bj_rect *mask_area, bj_bitmap *dst, const bj_rect *dst_area, uint32_t fg_native, uint32_t bg_native, bj_mask_bg_mode mode)
Masked blit with stretching (nearest neighbor). The mask must be 8bpp.
@ BJ_BLIT_OP_OR
Bitwise OR.
Definition bitmap.h:31
@ BJ_BLIT_OP_COPY
Copy source to destination (fast path when formats match)
Definition bitmap.h:29
@ BJ_BLIT_OP_AND
Bitwise AND.
Definition bitmap.h:32
@ BJ_BLIT_OP_ADD_SAT
Per-channel saturated add (clamped to 255)
Definition bitmap.h:33
@ BJ_BLIT_OP_XOR
Bitwise XOR (channel-wise for >8bpp)
Definition bitmap.h:30
@ BJ_BLIT_OP_SUB_SAT
Per-channel saturated subtract (clamped to 0)
Definition bitmap.h:34
uint32_t bj_bool
Boolean type used throughout the BJ codebase.
Definition api.h:143
Error structure.
Definition error.h:131
bj_pixel_mode
Representation of a pixel encoding.
Definition pixel.h:15
struct bj_rect_t bj_rect
Typedef for bj_rect_t.
Definition rect.h:15
Header file for general pixel manipulation facilities.
Defines the bj_rect struct representing a rectangle with position and dimensions.
Header file for bj_stream_t struct and related functions.