Banjo API 0.0.1
Multi-purpose C99 API
|
Header file for Bitmap type.
#include <banjo/api.h>
#include <banjo/error.h>
#include <banjo/pixel.h>
#include <banjo/rect.h>
#include <banjo/stream.h>
Go to the source code of this file.
Typedefs | |
typedef int | bj_pixel[2] |
Represents a pixel position in a bitmap. | |
typedef struct bj_bitmap_t | bj_bitmap |
Typedef for the bj_bitmap struct. | |
Functions | |
bj_bitmap * | bj_bitmap_alloc (void) |
Allocate a new bitmap object. | |
bj_bitmap * | bj_bitmap_new (size_t width, size_t height, bj_pixel_mode mode, size_t stride) |
Creates a new bj_bitmap with the specified width and height. | |
void | bj_bitmap_del (bj_bitmap *p_bitmap) |
Deletes a bj_bitmap object and releases associated memory. | |
bj_bitmap * | bj_bitmap_new_from_file (const char *p_path, bj_error **p_error) |
Creates a new bitmap by loading from a file. | |
bj_bool | bj_bitmap_blit_stretched (const bj_bitmap *p_source, const bj_rect *p_source_area, bj_bitmap *p_destination, const bj_rect *p_destination_area) |