how to display a 24 bit bitmap on a SDI View
-
Hi all, I have a 24 bit bitmap image file. It needs to be displayed on a SDI View screen. Can anyone please tell me how i can do it.
-
Hi all, I have a 24 bit bitmap image file. It needs to be displayed on a SDI View screen. Can anyone please tell me how i can do it.
use LoadImage function instead of LoadBitmap..LoadBitmap support 32X32..
-
Hi all, I have a 24 bit bitmap image file. It needs to be displayed on a SDI View screen. Can anyone please tell me how i can do it.
You can use
LoadImage
orcimage
for load picture and use fromWM_PAINT
for show_**
**_
whitesky
-
You can use
LoadImage
orcimage
for load picture and use fromWM_PAINT
for show_**
**_
whitesky
hi, I have a CDC* pDC in the OnDraw() function.How do i go about from here.
-
hi, I have a CDC* pDC in the OnDraw() function.How do i go about from here.
not problem you need to a dc you can use
pDC->BitBlt
orStretchBlt
_**
**_
whitesky
-
not problem you need to a dc you can use
pDC->BitBlt
orStretchBlt
_**
**_
whitesky
Can u give me the code.
-
Hi all, I have a 24 bit bitmap image file. It needs to be displayed on a SDI View screen. Can anyone please tell me how i can do it.
Hi, You can use Bitblt, CBitmap* pOldBitmap =pDC->SelectObject(&m_hBit); pDC->BitBlt(//...); pDC->SelectObject(pOldBitmap); Thanks
-
Hi, You can use Bitblt, CBitmap* pOldBitmap =pDC->SelectObject(&m_hBit); pDC->BitBlt(//...); pDC->SelectObject(pOldBitmap); Thanks
What is m_hBit.
-
Can u give me the code.
with this code you can show your picture
CImage m_Image; m_Image.Load(Filename); m_Image.BitBlt(....);
_**
**_
whitesky
-
What is m_hBit.
I think a handle bitmap_**
**_
whitesky
-
What is m_hBit.
'm_hBit' is an object to CBitmap Class. CDC::SelectObject() accepts pointer to CBitmap. You can have an CBItmap object in two steps, CBitmap m_hBit; m_hBit.LoadBitmap(...); //you can use other initializtion methods too After these two steps, you can use m_hBit object in CDC::SelectObject()