summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src/shlicons.h
blob: 8405bf69cc3a315588c065dfb0d19bb198ef21a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

struct TWICBitmap : public IWICBitmapSource
{
	virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
	virtual ULONG STDMETHODCALLTYPE AddRef(void);
	virtual ULONG STDMETHODCALLTYPE Release(void);

   virtual HRESULT STDMETHODCALLTYPE GetSize(UINT *puiWidth, UINT *puiHeight);
   virtual HRESULT STDMETHODCALLTYPE GetPixelFormat(WICPixelFormatGUID *pPixelFormat);
   virtual HRESULT STDMETHODCALLTYPE GetResolution(double *pDpiX, double *pDpiY);
   virtual HRESULT STDMETHODCALLTYPE CopyPalette(IWICPalette *pIPalette);
   virtual HRESULT STDMETHODCALLTYPE CopyPixels(const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer);
};

struct TImageFactory : public IImagingFactory
{
};

TImageFactory* ARGB_GetWorker();

HBITMAP ARGB_BitmapFromIcon(TImageFactory* Factory, HDC hdc, HICON hIcon);