Skip to content

Commit 342ddd0

Browse files
committed
Add the DibHasAlphaChannel function
1 parent 411fc23 commit 342ddd0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

BmpHeaderViewer/DibApi.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ BOOL SaveBitmap(LPCTSTR lpszFileName, HANDLE hDib);
166166
// Saves the embedded profile of a DIB in an ICC color profile file
167167
BOOL SaveProfile(LPCTSTR lpszFileName, HANDLE hDib);
168168

169-
// Creates a 32-bpp DIB with pre-multiplied alpha from a translucent 16/32-bpp DIB
169+
// Creates a 32-bpp DIB with pre-multiplied alpha from a translucent 16/32/64-bpp DIB
170170
HBITMAP CreatePremultipliedBitmap(HANDLE hDib);
171171

172172
// Frees the memory allocated for a DIB section using DeleteObject
@@ -199,7 +199,7 @@ HANDLE CreateClipboardDib(HANDLE hDib, UINT* puFormat = NULL);
199199
HPALETTE CreateDibPalette(HANDLE hDib);
200200

201201
// Gets the width and height of a DIB
202-
BOOL GetDIBDimensions(LPCSTR lpbi, LPLONG lplWidth, LPLONG lplHeight, BOOL bAbsolute = FALSE);
202+
BOOL GetDibDimensions(LPCSTR lpbi, LPLONG lplWidth, LPLONG lplHeight, BOOL bAbsolute = FALSE);
203203

204204
// Calculates the number of colors in the DIBs color table
205205
UINT DibNumColors(LPCSTR lpbi);
@@ -224,6 +224,9 @@ LPBYTE FindDibPalette(LPCSTR lpbi);
224224
// Returns a pointer to the pixel bits of a packed DIB
225225
LPBYTE FindDibBits(LPCSTR lpbi);
226226

227+
// Checks whether the DIB can store transparency information
228+
BOOL DibHasAlphaChannel(LPCSTR lpbi);
229+
227230
// Checks if the DIBv5 has an embedded ICC profile
228231
BOOL DibHasEmbeddedProfile(LPCSTR lpbi);
229232

0 commit comments

Comments
 (0)