Angband
Data Structures | Functions
readdib.h File Reference

This file has been modified for use with "Angband 2.8.2". More...

Go to the source code of this file.

Data Structures

struct  DIBINIT
 Information about a bitmap. More...

Functions

BOOL ReadDIB (HWND, LPSTR, DIBINIT *)
 Read a DIB from a file.
void FreeDIB (DIBINIT *dib)
 Free a DIB.
BOOL ReadDIB_PNG (HWND, LPSTR, DIBINIT *)
 New png stuff.
BOOL ReadDIB2_PNG (HWND, LPSTR, DIBINIT *, DIBINIT *, BOOL)
 Extract the "WIN32" flag from the compiler.

Detailed Description

This file has been modified for use with "Angband 2.8.2".

Copyright 1991 Microsoft Corporation. All rights reserved.

Function Documentation

void FreeDIB ( DIBINIT dib)

Free a DIB.

BOOL ReadDIB ( HWND  ,
LPSTR  ,
DIBINIT  
)

Read a DIB from a file.

BOOL ReadDIB2_PNG ( HWND  hWnd,
LPSTR  lpFileName,
DIBINIT pInfo,
DIBINIT pMask,
BOOL  premultiply 
)

Extract the "WIN32" flag from the compiler.

Imports a DIB from a PNG file. Once the DIB is loaded, the function also creates a bitmap and palette out of the DIB for a device-dependent form.

Returns TRUE if the DIB is loaded and the bitmap/palette created, in which case, the DIBINIT structure pointed to by pInfo is filled with the appropriate handles, and FALSE if something went wrong.

References bit_depth, FALSE, fp, DIBINIT::hBitmap, DIBINIT::hDIB, height, DIBINIT::hPalette, DIBINIT::ImageHeight, DIBINIT::ImageWidth, info_ptr, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB_ALPHA, PNG_INFO_tRNS, PNG_LIBPNG_VER_STRING, row, row_pointers, TRUE, and width.

BOOL ReadDIB_PNG ( HWND  ,
LPSTR  ,
DIBINIT  
)

New png stuff.