NetSurf
Functions
image.h File Reference

Initialisation/finalisation of image handlers. More...

#include "utils/errors.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Initialisation/finalisation of image handlers.

Definition in file image.h.

Function Documentation

◆ image_bitmap_plot()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_init()

nserror image_init ( void  )

Initialise the content handlers for image types.

Initialise the content handlers for image types.

Returns
NSERROR_OK on success, appropriate error otherwise.

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().

Here is the call graph for this function:
Here is the caller graph for this function: