NetSurf
bitmap.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
3 * Copyright 2009 Mark Benjamin <netsurf-browser.org.MarkBenjamin@dfgh.net>
4 *
5 * This file is part of NetSurf, http://www.netsurf-browser.org/
6 *
7 * NetSurf is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * NetSurf is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef _NETSURF_WINDOWS_BITMAP_H_
21#define _NETSURF_WINDOWS_BITMAP_H_
22
24
25struct bitmap {
26 HBITMAP windib;
27 BITMAPV5HEADER *pbmi;
28 int width;
29 int height;
30 uint8_t *pixdata;
31 bool opaque;
32};
33
34struct bitmap *bitmap_scale(struct bitmap *prescale, int width, int height);
35
37
38#endif
struct gui_bitmap_table * win32_bitmap_table
Definition: bitmap.c:338
void win32_bitmap_destroy(void *bitmap)
Free a bitmap.
Definition: bitmap.c:151
struct bitmap * bitmap_scale(struct bitmap *prescale, int width, int height)
Definition: bitmap.c:236
int width
Definition: gui.c:160
int height
Definition: gui.c:161
RISC OS wimp toolkit bitmap.
Definition: bitmap.c:68
int width
width of bitmap
Definition: bitmap.c:69
BITMAPV5HEADER * pbmi
Definition: bitmap.h:27
int height
height of bitmap
Definition: bitmap.c:70
bool opaque
Whether the bitmap is opaque.
Definition: bitmap.c:74
UBYTE * pixdata
Definition: bitmap.c:71
HBITMAP windib
Definition: bitmap.h:26
Bitmap operations.
Definition: bitmap.h:125