125 unsigned char *pixel;
138 ((fill_style.
fill_colour & 0xff000000) == 0xff000000)) {
159 }
else if ((fill_style.
fill_colour & 0xff000000) == 0) {
interface to image/bmp content handler initialisation.
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.
nserror image_init(void)
Initialise image content handlers.
Initialisation/finalisation of image handlers.
Internal core bitmap interface.
static colour bitmap_pixel_to_colour(const uint8_t *pixel)
Convert a bitmap pixel to a NetSurf colour (0xAARRGGBB).
nserror
Enumeration of error codes.
Content for image/gif (interface).
struct netsurf_table * guit
The global interface table.
Interface to core interface table.
Content for image/ico (interface).
Generic bitmap handling interface.
Public content interface.
Target independent plotting interface.
unsigned long bitmap_flags_t
Content for image/jpeg (interface).
nserror nsjpeg_init(void)
Content for image/jpegxl (interface).
nserror nsjpegxl_init(void)
Localised message support (interface).
Content for image/x-riscos-sprite (librosprite interface).
nserror nssprite_init(void)
@ PLOT_OP_TYPE_NONE
No operation.
@ PLOT_OP_TYPE_SOLID
Solid colour.
Content handler for image/svg using librsvg (interface).
nserror nsrsvg_init(void)
RISC OS wimp toolkit bitmap.
parameters to content redraw
int height
vertical dimension
bool repeat_y
whether content is tiled in y direction
bool repeat_x
whether content is tiled in x direction
int y
coordinate for top-left of redraw
int x
coordinate for top-left of redraw
colour background_colour
The background colour.
int width
dimensions to render content at (for scaling contents with intrinsic dimensions)
int(* get_height)(void *bitmap)
Get the bitmap height.
int(* get_width)(void *bitmap)
Get the bitmap width.
bool(* get_opaque)(void *bitmap)
Get the opacity of a bitmap.
unsigned char *(* get_buffer)(void *bitmap)
Get the image buffer from a bitmap.
struct gui_bitmap_table * bitmap
Bitmap table.
Plot style for stroke/fill plotters.
colour fill_colour
Colour of fill.
plot_operation_type_t fill_type
Fill plot type.
plot_operation_type_t stroke_type
Stroke plot type.
nserror(* rectangle)(const struct redraw_context *ctx, const plot_style_t *pstyle, const struct rect *rectangle)
Plots a rectangle.
nserror(* bitmap)(const struct redraw_context *ctx, struct bitmap *bitmap, int x, int y, int width, int height, colour bg, bitmap_flags_t flags)
Plot a bitmap.
const struct plotter_table * plot
Current plot operation table.
Content for image/svg (interface).
Interface to a number of general purpose functionality.
Interface to image/webp content handlers.
nserror nswebp_init(void)
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.