1 | /* |
2 | * $Id: BITMAPINFO.java,v 1.1.1.5 2004/05/25 20:23:20 hastings Exp $ |
3 | * |
4 | * (c) Copyright, Moebius Solutions, Inc., 2004 |
5 | * |
6 | * All Rights Reserved |
7 | * |
8 | * This material may be reproduced by or for the U. S. Government |
9 | * pursuant to the copyright license under the clause at |
10 | * DFARS 252.227-7014 (OCT 2001). |
11 | */ |
12 | |
13 | package com.moesol.bindings.platform_sdk.windows_api; |
14 | |
15 | /** |
16 | * @author Robert Hastings |
17 | */ |
18 | public class BITMAPINFO { |
19 | public BITMAPINFO(int ncolors) { |
20 | m_bytes = new byte[BITMAPINFOHEADER.sizeof() + 4 * ncolors]; |
21 | m_bmi_header = new BITMAPINFOHEADER(m_bytes); |
22 | } |
23 | public BITMAPINFOHEADER get_bmiHeader() { |
24 | return m_bmi_header; |
25 | } |
26 | /** package level accessor */ |
27 | byte[] getNativeStructure() { |
28 | return m_bytes; |
29 | } |
30 | // TODO rgb color access... |
31 | private byte[] m_bytes; |
32 | private BITMAPINFOHEADER m_bmi_header; |
33 | } |