aboutsummaryrefslogtreecommitdiff
path: root/Src/auth/Loginbox/imageLoader.h
blob: 6169693e09b26e6f11057bd8a5106f507ffcf4b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef NULLSOFT_AUTH_LOGINBOX_IMAGELOADER_HEADER
#define NULLSOFT_AUTH_LOGINBOX_IMAGELOADER_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <wtypes.h>

void *ImageLoader_LoadData(HINSTANCE hInstance, LPCWSTR pszName, BOOL fPremultiply, INT *widthOut, INT *heightOut);
void ImageLoader_FreeData(void *data);
HBITMAP ImageLoader_LoadBitmapEx(HINSTANCE hInstance, LPCWSTR pszName, BOOL fPremultiply, BITMAPINFOHEADER *headerInfo, void **dataOut);
HBITMAP ImageLoader_LoadBitmap(HINSTANCE hInstance, LPCWSTR pszName, BOOL fPremultiply, INT *widthOut, INT *heightOut);
BOOL ImageLoader_GetDimensions(HINSTANCE hInstance, LPCWSTR pszName, INT *widthOut, INT *heightOut);

#endif //NULLSOFT_AUTH_LOGINBOX_IMAGELOADER_HEADER