PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
image.c File Reference
#include "internal.h"
#include <stdlib.h>
Include dependency graph for image.c:

Go to the source code of this file.

Macros

#define FBMP_MAGIC   0x706D6266
 

Functions

image_timage_new_blank (display_t *disp, uint64_t width, uint64_t height)
 
image_timage_new (display_t *disp, const char *path)
 
void image_free (image_t *image)
 
drawable_timage_draw (image_t *image)
 
void image_rect (image_t *image, rect_t *rect)
 
uint64_t image_width (image_t *image)
 
uint64_t image_height (image_t *image)
 

Macro Definition Documentation

◆ FBMP_MAGIC

#define FBMP_MAGIC   0x706D6266

Definition at line 5 of file image.c.

Function Documentation

◆ image_new_blank()

image_t * image_new_blank ( display_t disp,
uint64_t  width,
uint64_t  height 
)

Definition at line 7 of file image.c.

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

◆ image_new()

image_t * image_new ( display_t disp,
const char *  path 
)

Definition at line 27 of file image.c.

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

◆ image_free()

void image_free ( image_t image)

Definition at line 74 of file image.c.

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

◆ image_draw()

drawable_t * image_draw ( image_t image)

Definition at line 84 of file image.c.

Here is the caller graph for this function:

◆ image_rect()

void image_rect ( image_t image,
rect_t rect 
)

Definition at line 89 of file image.c.

◆ image_width()

uint64_t image_width ( image_t image)

Definition at line 94 of file image.c.

Here is the caller graph for this function:

◆ image_height()

uint64_t image_height ( image_t image)

Definition at line 99 of file image.c.

Here is the caller graph for this function: