From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/auth/Loginbox/imageLoader.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Src/auth/Loginbox/imageLoader.h (limited to 'Src/auth/Loginbox/imageLoader.h') diff --git a/Src/auth/Loginbox/imageLoader.h b/Src/auth/Loginbox/imageLoader.h new file mode 100644 index 00000000..6169693e --- /dev/null +++ b/Src/auth/Loginbox/imageLoader.h @@ -0,0 +1,16 @@ +#ifndef NULLSOFT_AUTH_LOGINBOX_IMAGELOADER_HEADER +#define NULLSOFT_AUTH_LOGINBOX_IMAGELOADER_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include + +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 \ No newline at end of file -- cgit