NetSurf
|
Bitmap operations. More...
#include <bitmap.h>
Data Fields | |
void *(* | create )(int width, int height, enum gui_bitmap_flags flags) |
Create a new bitmap. More... | |
void(* | destroy )(void *bitmap) |
Destroy a bitmap. More... | |
void(* | set_opaque )(void *bitmap, bool opaque) |
Set the opacity of a bitmap. More... | |
bool(* | get_opaque )(void *bitmap) |
Get the opacity of a bitmap. More... | |
unsigned char *(* | get_buffer )(void *bitmap) |
Get the image buffer from a bitmap. More... | |
size_t(* | get_rowstride )(void *bitmap) |
Get the number of bytes per row of the image. More... | |
int(* | get_width )(void *bitmap) |
Get the bitmap width. More... | |
int(* | get_height )(void *bitmap) |
Get the bitmap height. More... | |
void(* | modified )(void *bitmap) |
Marks a bitmap as modified. More... | |
nserror(* | render )(struct bitmap *bitmap, struct hlcache_handle *content) |
Render content into a bitmap. More... | |
void *(* gui_bitmap_table::create) (int width, int height, enum gui_bitmap_flags flags) |
Create a new bitmap.
width | width of image in pixels |
height | height of image in pixels |
flags | flags for bitmap creation |
Definition at line 136 of file bitmap.h.
Referenced by browser_window_history__clone_entry(), browser_window_history_add(), gif_bitmap_create(), info_callback(), jpeg_cache_convert(), jpegxl_cache_convert(), nsbmp_bitmap_create(), nsico_bitmap_create(), nssprite_convert(), png_cache_convert(), rsvg_cache_convert(), rsvg_convert(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), treeview_generate_triangle_bitmap(), verify_bitmap_register(), and webp_cache_convert().
void(* gui_bitmap_table::destroy) (void *bitmap) |
Destroy a bitmap.
bitmap | The bitmap to destroy. |
Definition at line 143 of file bitmap.h.
Referenced by browser_window_history__clone_entry(), browser_window_history__free_entry(), gif_create_gif_data(), image_cache__free_bitmap(), image_cache_add(), jpeg_cache_convert(), jpegxl_cache_convert(), nsbmp_create_bmp_data(), nsico_create_ico_data(), nssprite_destroy(), png_cache_convert(), rsvg_cache_convert(), rsvg_destroy(), treeview_fini(), verify_bitmap_register(), and webp_cache_convert().
unsigned char *(* gui_bitmap_table::get_buffer) (void *bitmap) |
Get the image buffer from a bitmap.
Note that all pixels must be 4-byte aligned.
bitmap | The bitmap to get the buffer from. |
Definition at line 169 of file bitmap.h.
Referenced by bitmap_format_convert(), bitmap_test_opaque(), browser_window_history__clone_entry(), calc_row_pointers(), gif_create_gif_data(), image_bitmap_plot(), jpeg_cache_convert(), jpegxl_cache_convert(), nsbmp_create_bmp_data(), nsico_create_ico_data(), nssprite_convert(), row_callback(), rsvg_cache_convert(), rsvg_convert(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), treeview_generate_triangle_bitmap(), verify_bitmap_register(), and webp_cache_convert().
int(* gui_bitmap_table::get_height) (void *bitmap) |
Get the bitmap height.
bitmap | The bitmap |
Definition at line 193 of file bitmap.h.
Referenced by bitmap_format_convert(), bitmap_test_opaque(), browser_window_history__clone_entry(), calc_row_pointers(), image_bitmap_plot(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), and verify_bitmap_register().
bool(* gui_bitmap_table::get_opaque) (void *bitmap) |
Get the opacity of a bitmap.
bitmap | The bitmap to examine. |
Definition at line 159 of file bitmap.h.
Referenced by bitmap_format_convert(), gif_content_is_opaque(), image_bitmap_plot(), image_cache_is_opaque(), knockout_plot_bitmap(), nsbmp_content_is_opaque(), nsico_is_opaque(), nssprite_content_is_opaque(), rsvg_content_is_opaque(), and verify_bitmap_register().
size_t(* gui_bitmap_table::get_rowstride) (void *bitmap) |
Get the number of bytes per row of the image.
bitmap | The bitmap |
Definition at line 177 of file bitmap.h.
Referenced by bitmap_format_convert(), bitmap_test_opaque(), browser_window_history__clone_entry(), calc_row_pointers(), info_callback(), jpeg_cache_convert(), rsvg_cache_convert(), rsvg_convert(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), treeview_generate_triangle_bitmap(), verify_bitmap_register(), and webp_cache_convert().
int(* gui_bitmap_table::get_width) (void *bitmap) |
Get the bitmap width.
bitmap | The bitmap |
Definition at line 185 of file bitmap.h.
Referenced by bitmap_format_convert(), bitmap_test_opaque(), image_bitmap_plot(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), and verify_bitmap_register().
void(* gui_bitmap_table::modified) (void *bitmap) |
Marks a bitmap as modified.
bitmap | The bitmap set as modified. |
Definition at line 200 of file bitmap.h.
Referenced by gif_create_gif_data(), jpeg_cache_convert(), jpegxl_cache_convert(), nsbmp_redraw(), nsico__decode(), nspng_convert(), nssprite_convert(), png_cache_convert(), rsvg_cache_convert(), rsvg_convert(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), treeview_generate_triangle_bitmap(), verify_bitmap_register(), and webp_cache_convert().
nserror(* gui_bitmap_table::render) (struct bitmap *bitmap, struct hlcache_handle *content) |
Render content into a bitmap.
bitmap | The bitmap to render into. |
content | The content to render. |
Definition at line 208 of file bitmap.h.
Referenced by browser_window_history_add(), browser_window_history_update(), and verify_bitmap_register().
void(* gui_bitmap_table::set_opaque) (void *bitmap, bool opaque) |
Set the opacity of a bitmap.
bitmap | The bitmap to set opacity on. |
opaque | The bitmap opacity to set. |
Definition at line 151 of file bitmap.h.
Referenced by gif_create_gif_data(), nspng_convert(), png_cache_convert(), and verify_bitmap_register().