mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
Put the bitmaps into the executable.
svn path=/trunk/; revision=19251
This commit is contained in:
parent
6acde9bc12
commit
9d0b4973fa
3 changed files with 9 additions and 4 deletions
|
@ -85,8 +85,8 @@ BOOL ConvertBitmapTo32Bpp(HDC hDC, BITMAP *bmp)
|
||||||
BitBlt(hDC, 0, 0, bmp->bmWidth, bmp->bmHeight, HMemDC, 0, 0, SRCCOPY);
|
BitBlt(hDC, 0, 0, bmp->bmWidth, bmp->bmHeight, HMemDC, 0, 0, SRCCOPY);
|
||||||
|
|
||||||
/* load and apply alpha channel */
|
/* load and apply alpha channel */
|
||||||
bmpalpha = LoadImage(HInst, TEXT("lenaalpha.bmp"), IMAGE_BITMAP,
|
bmpalpha = LoadImage(HInst, MAKEINTRESOURCE(2000), IMAGE_BITMAP,
|
||||||
0, 0, LR_LOADFROMFILE);
|
0, 0, 0);
|
||||||
if(bmpalpha)
|
if(bmpalpha)
|
||||||
{
|
{
|
||||||
COLORREF *col = pBmpBits;
|
COLORREF *col = pBmpBits;
|
||||||
|
@ -131,8 +131,8 @@ LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam,
|
||||||
/* load a bitmap from file */
|
/* load a bitmap from file */
|
||||||
HBITMAP HBmp =
|
HBITMAP HBmp =
|
||||||
/* static_cast<HBITMAP> */(
|
/* static_cast<HBITMAP> */(
|
||||||
LoadImage(HInst, filename, IMAGE_BITMAP,
|
LoadImage(HInst, MAKEINTRESOURCE(1000), IMAGE_BITMAP,
|
||||||
0, 0, LR_LOADFROMFILE)
|
0, 0, 0)
|
||||||
);
|
);
|
||||||
if (HBmp)
|
if (HBmp)
|
||||||
{
|
{
|
||||||
|
|
3
rosapps/tests/alphablend/alphablend.rc
Normal file
3
rosapps/tests/alphablend/alphablend.rc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
1000 BITMAP MOVEABLE PURE "lena.bmp"
|
||||||
|
2000 BITMAP MOVEABLE PURE "lenaalpha.bmp"
|
|
@ -2,7 +2,9 @@
|
||||||
<define name="_WIN32_IE">0x0501</define>
|
<define name="_WIN32_IE">0x0501</define>
|
||||||
<define name="_WIN32_WINNT">0x0501</define>
|
<define name="_WIN32_WINNT">0x0501</define>
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
|
<include base="alphablend">.</include>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>gdi32</library>
|
<library>gdi32</library>
|
||||||
<file>alphablend.c</file>
|
<file>alphablend.c</file>
|
||||||
|
<file>alphablend.rc</file>
|
||||||
</module>
|
</module>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue