NetSurf
Enumerations | Functions
image.h File Reference
#include <stdbool.h>
#include "netsurf/types.h"
#include "oslib/osspriteop.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.

Enumerations

enum  image_type { IMAGE_PLOT_TINCT_ALPHA , IMAGE_PLOT_TINCT_OPAQUE , IMAGE_PLOT_OS }
 

Functions

bool image_redraw (osspriteop_area *area, int x, int y, int req_width, int req_height, int width, int height, colour background_colour, bool repeatx, bool repeaty, bool background, image_type type)
 Plot an image at the given coordinates using the method specified. More...
 

Enumeration Type Documentation

◆ image_type

enum image_type
Enumerator
IMAGE_PLOT_TINCT_ALPHA 
IMAGE_PLOT_TINCT_OPAQUE 
IMAGE_PLOT_OS 

Definition at line 28 of file image.h.

Function Documentation

◆ image_redraw()

bool image_redraw ( osspriteop_area *  area,
int  x,
int  y,
int  req_width,
int  req_height,
int  width,
int  height,
colour  background_colour,
bool  repeatx,
bool  repeaty,
bool  background,
image_type  type 
)

Plot an image at the given coordinates using the method specified.

Parameters
areaThe sprite area containing the sprite
xLeft edge of sprite
yTop edge of sprite
req_widthThe requested width of the sprite
req_heightThe requested height of the sprite
widthThe actual width of the sprite
heightThe actual height of the sprite
background_colourThe background colour to blend to
repeatxRepeat the image in the x direction
repeatyRepeat the image in the y direction
backgroundUse background image settings (otherwise foreground)
typeThe plot method to use
Returns
true on success, false otherwise

Definition at line 209 of file image.c.

References alpha_SPRITE_MODE, height, image__override_sprite_mode(), IMAGE_PLOT_OS, IMAGE_PLOT_TINCT_ALPHA, IMAGE_PLOT_TINCT_OPAQUE, image_redraw_os(), image_redraw_tinct(), nsoption_int, os_alpha_sprite_supported, ro_gui_wimp_read_eig_factors(), tinct_options, tinct_SPRITE_MODE, tinct_USE_OS_SPRITE_OP, type, and width.

Referenced by ro_plot_bitmap().

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