NetSurf
|
#include <stdbool.h>
#include <stdlib.h>
#include "utils/utils.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "netsurf/plotters.h"
#include "netsurf/bitmap.h"
#include "netsurf/content.h"
#include "desktop/gui_internal.h"
#include "desktop/bitmap.h"
#include "image/bmp.h"
#include "image/gif.h"
#include "image/ico.h"
#include "image/jpeg.h"
#include "image/jpegxl.h"
#include "image/nssprite.h"
#include "image/png.h"
#include "image/rsvg.h"
#include "image/svg.h"
#include "image/webp.h"
#include "image/image.h"
Go to the source code of this file.
Functions | |
nserror | image_init (void) |
Initialise image content handlers. 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... | |
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 image content handlers.
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().