1/*
2 * Copyright 2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Based on gallium gdi winsys
6 *
7 * Authors:
8 * 	Artur Wyszynski <harakash@gmail.com>
9 */
10#ifndef __BBITMAP_WRAPPER_H__
11#define __BBITMAP_WRAPPER_H__
12
13
14#include <interface/GraphicsDefs.h>
15#include <support/SupportDefs.h>
16
17
18typedef void Bitmap;
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24
25Bitmap* create_bitmap(int32 width, int32 height, color_space colorSpace);
26void copy_bitmap_bits(const Bitmap* bitmap, void* data, int32 length);
27
28void get_bitmap_size(const Bitmap* bitmap, int32* width, int32* height);
29color_space get_bitmap_color_space(const Bitmap* bitmap);
30int32 get_bitmap_bytes_per_row(const Bitmap* bitmap);
31int32 get_bitmap_bits_length(const Bitmap* bitmap);
32
33void delete_bitmap(Bitmap* bitmap);
34void dump_bitmap(const Bitmap* bitmap);
35
36
37#ifdef __cplusplus
38}
39#endif
40
41
42#endif /* __BBITMAP_WRAPPER_H__ */
43