Angband
Data Structures | Functions
readdib.h File Reference

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

#include <stdbool.h>

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. More...
 
void FreeDIB (DIBINIT *dib)
 Free a DIB. More...
 
bool ReadDIB_PNG (HWND, LPSTR, DIBINIT *)
 New png stuff. More...
 
bool ReadDIB2_PNG (HWND, LPSTR, DIBINIT *, DIBINIT *, bool)
 Extract the "WIN32" flag from the compiler. More...
 

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, fp, DIBINIT::hBitmap, DIBINIT::hDIB, header, height, DIBINIT::hPalette, DIBINIT::ImageHeight, DIBINIT::ImageWidth, info_ptr, NULL, 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, void(), and width.

bool ReadDIB_PNG ( HWND  ,
LPSTR  ,
DIBINIT  
)

New png stuff.