blob: 0c8066b3bbc19c3c0afd78050501d9a5aea04f6f [file] [log] [blame]
license.botf003cfe2008-08-24 09:55:55 +09001// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit3f4a7322008-07-27 06:49:38 +09004
5#ifndef BASE_GFX_BITMAP_HEADER_H__
6#define BASE_GFX_BITMAP_HEADER_H__
7
8#include <windows.h>
9
10namespace gfx {
11
12// Creates a BITMAPINFOHEADER structure given the bitmap's size.
13void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
14
15// Creates a BITMAPINFOHEADER structure given the bitmap's size and
16// color depth in bits per pixel.
17void CreateBitmapHeaderWithColorDepth(int width, int height, int color_depth,
18 BITMAPINFOHEADER* hdr);
19
20// Creates a BITMAPV4HEADER structure given the bitmap's size. You probably
21// only need to use BMP V4 if you need transparency (alpha channel). This
22// function sets the AlphaMask to 0xff000000.
23void CreateBitmapV4Header(int width, int height, BITMAPV4HEADER* hdr);
24
25// Creates a monochrome bitmap header.
26void CreateMonochromeBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
27
28
29} // namespace gfx
30
31#endif // BASE_GFX_BITMAP_HEADER_H__
license.botf003cfe2008-08-24 09:55:55 +090032