how to display a gradation image?
- From: daniel <daniel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Dec 2008 04:17:01 -0800
Hi?
I'm trying to display a 24bit bmp image which has gradation part in it.
The image can be shown correctly. But the gradation part is shown as moire.
Of course, my target device support 24bit display.
My code is like following.
CClientDC dc(this);
HGDIOBJ pOldBitmap;
CDC bitmapDC;
CMemDC m_memDC(&dc, &clientRect);
m_memDC.FillSolidRect(&clientRect, RGB(76,85,118));
bitmapDC.CreateCompatibleDC(&dc);
pOldBitmap = bitmapDC.SelectObject(jhBitmapBK );
m_memDC.BitBlt( 0, 0, BG_SIZE_WIDTH, BG_SIZE_HEIGHT,
&bitmapDC, 0, 0, SRCCOPY );
bitmapDC.SelectObject(pOldBitmap);
pOldBitmap = NULL;
What's matter?
.
- Follow-Ups:
- Re: how to display a gradation image?
- From: Charlie
- Re: how to display a gradation image?
- Prev by Date: Re: Building a Camera app in Windows ce 6.0
- Next by Date: RE: PRB:Serial port issue with WinCE 6.00 Emulator!!!!
- Previous by thread: Re: Streaming MP3 with HTTP in CE 5
- Next by thread: Re: how to display a gradation image?
- Index(es):
Relevant Pages
|