NetSurf
|
Initialisation/finalisation of image handlers. More...
#include "utils/errors.h"
Go to the source code of this file.
Functions | |
nserror | image_init (void) |
Initialise the content handlers for image types. More... | |
bool | image_bitmap_plot (struct bitmap *bitmap, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx) |
Common image content handler bitmap plot call. More... | |
Initialisation/finalisation of image handlers.
Definition in file image.h.
bool image_bitmap_plot | ( | struct bitmap * | bitmap, |
struct content_redraw_data * | data, | ||
const struct rect * | clip, | ||
const struct redraw_context * | ctx | ||
) |
Common image content handler bitmap plot call.
This plots the specified bitmap controlled by the redraw context and specific content redraw data. It is a helper specifically provided for image content handlers redraw callback.
Definition at line 116 of file image.c.
References content_redraw_data::background_colour, netsurf_table::bitmap, plotter_table::bitmap, bitmap_pixel_to_colour(), BITMAPF_NONE, BITMAPF_REPEAT_X, BITMAPF_REPEAT_Y, clip(), plot_style_s::fill_colour, plot_style_s::fill_type, gui_bitmap_table::get_buffer, gui_bitmap_table::get_height, gui_bitmap_table::get_opaque, gui_bitmap_table::get_width, guit, height, content_redraw_data::height, NSERROR_OK, redraw_context::plot, PLOT_OP_TYPE_NONE, PLOT_OP_TYPE_SOLID, plotter_table::rectangle, content_redraw_data::repeat_x, content_redraw_data::repeat_y, plot_style_s::stroke_type, width, content_redraw_data::width, content_redraw_data::x, rect::x0, rect::x1, content_redraw_data::y, rect::y0, and rect::y1.
Referenced by gif_redraw(), image_cache_redraw(), and nsico_redraw().
nserror image_init | ( | void | ) |
Initialise the content handlers for image types.
Initialise the content handlers for image types.
Definition at line 48 of file image.c.
References nsbmp_init(), NSERROR_OK, nsgif_init(), nsico_init(), nsjpeg_init(), nsjpegxl_init(), nspng_init(), nsrsvg_init(), nssprite_init(), nswebp_init(), and svg_init().
Referenced by netsurf_init().