diff options
Diffstat (limited to 'plugins/Toaster/src/avatars.h')
-rw-r--r-- | plugins/Toaster/src/avatars.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/Toaster/src/avatars.h b/plugins/Toaster/src/avatars.h deleted file mode 100644 index 9321b6bfbf..0000000000 --- a/plugins/Toaster/src/avatars.h +++ /dev/null @@ -1,28 +0,0 @@ -class ToasterAvatar
-{
- ptrW wszPath;
- int iFormat;
- MCONTACT hContact;
- FIBITMAP *bitmap;
-
-public:
- ToasterAvatar(PROTO_AVATAR_INFORMATION *pai) : wszPath(pai->filename), iFormat(pai->format), hContact(pai->hContact)
- {
- bitmap = (FIBITMAP*)CallService(MS_IMG_LOAD, (WPARAM)wszPath, IMGL_WCHAR | IMGL_RETURNDIB);
- }
-
- ~ToasterAvatar()
- {
- CallService(MS_IMG_UNLOAD, (WPARAM)bitmap);
- }
-
- INT_PTR Save(const wchar_t *wszSavePath)
- {
- IMGSRVC_INFO isi = { sizeof(isi) };
- isi.wszName = mir_wstrdup(wszSavePath);
- isi.dib = bitmap;
- isi.dwMask = IMGI_FBITMAP;
- isi.fif = FREE_IMAGE_FORMAT::FIF_PNG;
- return CallService(MS_IMG_SAVE, (WPARAM)&isi, IMGL_WCHAR);
- }
-};
\ No newline at end of file |