how to display a gradation image?



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?
.



Relevant Pages

  • QVGA display
    ... I am pushing an bmp image generated by a embedded toolkit onto a QVGA ... I do not have the pixel doubling feature enabled. ... Below is my configuration of the epson controller. ... Display Blank: Not Blanked ...
    (comp.arch.embedded)
  • Cant run eboot.nb0.
    ... Friends I am working on smdk2440. ... I am trying to display a bmp image on the screen. ...
    (microsoft.public.windowsce.platbuilder)
  • Display a BMP image function
    ... a BMP image and display it on the screen with ugl. ... unsigned int _height; ... fseek(handle, 18, SEEK_SET); ... The problem is that the image isn't display correct. ...
    (comp.os.vxworks)
  • Re: createDIBsection failed
    ... "Francois" wrote in message ... > i'm using the following code which is supposed to display a BMP image on ... Regards, ...
    (microsoft.public.vc.language)
  • Re: createDIBsection failed
    ... "Francois" wrote in message ... > i'm using the following code which is supposed to display a BMP image on ... Regards, ...
    (microsoft.public.vc.mfc)