summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/image_utils.h
blob: 5070ce885475a1ac140d6069a1b357863b5fb0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __IMAGE_UTILS_H__
# define __IMAGE_UTILS_H__

HBITMAP BmpFilterLoadBitmap(BOOL *bIsTransparent, const wchar_t *ptszFilename);
int     BmpFilterSaveBitmap(HBITMAP hBmp, const wchar_t *ptszFile, int flags);

HBITMAP CopyBitmapTo32(HBITMAP hBitmap);

BOOL MakeTransparentBkg(MCONTACT hContact, HBITMAP *hBitmap);
HBITMAP MakeGrayscale(HBITMAP hBitmap);
uint32_t GetImgHash(HBITMAP hBitmap);

int SaveAvatar(const char* protocol, const wchar_t* tszFileName);

#endif // __IMAGE_UTILS_H__