23#include <exec/types.h>
24#include <proto/graphics.h>
25#include <intuition/classusr.h>
26#include <libraries/Picasso96.h>
30#define AMI_BITMAP_FORMAT RGBFB_A8R8G8B8
31#define AMI_BITMAP_SCALE_ICON 0xFF
41 int height,
struct BitMap *n_bm);
static bool palette_mapped
size_t amiga_bitmap_get_rowstride(void *bitmap)
Find the width of a pixel row in bytes.
void * amiga_bitmap_create(int width, int height, enum gui_bitmap_flags flags)
Create a bitmap.
void ami_bitmap_set_url(struct bitmap *bm, struct nsurl *url)
Set bitmap URL.
struct BitMap * ami_bitmap_get_native(struct bitmap *bitmap, int width, int height, bool palette_mapped, struct BitMap *friendbm)
int bitmap_get_width(void *bitmap)
Return the width of a bitmap.
void ami_bitmap_free_icondata(struct bitmap *bm)
Free an icondata pointer.
void ami_bitmap_fini(void)
Cleanup bitmap allocations.
int bitmap_get_height(void *bitmap)
Return the height of a bitmap.
bool amiga_bitmap_save(void *bitmap, const char *path, unsigned flags)
Save a bitmap in the platform's native format.
PLANEPTR ami_bitmap_get_mask(struct bitmap *bitmap, int width, int height, struct BitMap *n_bm)
bool ami_bitmap_is_nativebm(struct bitmap *bm, struct BitMap *nbm)
Test if a BitMap is owned by a bitmap.
struct bitmap * ami_bitmap_from_datatype(char *filename)
struct gui_bitmap_table * amiga_bitmap_table
void ami_bitmap_set_title(struct bitmap *bm, const char *title)
Set bitmap title.
void amiga_bitmap_modified(void *bitmap)
The bitmap image has changed, so flush any persistant cache.
void amiga_bitmap_set_opaque(void *bitmap, bool opaque)
Sets whether a bitmap should be plotted opaque.
Object * ami_datatype_object_from_bitmap(struct bitmap *bitmap)
void ami_bitmap_set_icondata(struct bitmap *bm, ULONG *icondata)
Set an icondata pointer.
bool amiga_bitmap_get_opaque(void *bitmap)
Gets whether a bitmap should be plotted opaque.
unsigned char * amiga_bitmap_get_buffer(void *bitmap)
Return a pointer to the pixel data in a bitmap.
void amiga_bitmap_destroy(void *bitmap)
Free a bitmap.
Generic bitmap handling interface.
gui_bitmap_flags
Bitmap creation flags.
struct nsurl nsurl
NetSurf URL object.
RISC OS wimp toolkit bitmap.
bool opaque
Whether the bitmap is opaque.
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.