Re: Stretchblt issue by Jeffrey
Jeffrey
Fri Apr 13 15:41:44 CDT 2007
Use GetDeviceCaps to check that your device supports the RC_STRETCHBLT
capability.
--
Jeffrey Min
Software Development Engineer
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Srini" <srinivasan222@gmail.com> wrote in message
news:1176199879.137527.262640@n76g2000hsh.googlegroups.com...
> Hi,
>
> Thanks for your reply. Actualy the code was working in WM 5.0.
> But now I am testing it in WM 6.0. It is not working now.
> Do you have any idea about this strange issue?
>
> Thanks and Regards
> Srini
> On Apr 10, 2:46 pm, "Herojit" <heroj...@gmail.com> wrote:
>> Hi,
>>
>> Everything seems fine. The only problem can be if the HBITMAP in pDC
>> is not large enough
>> to hold the final zoomed bitmap.
>>
>> Regards,
>> Herojit
>>
>> On Apr 6, 12:20 pm, "Srini" <srinivasan...@gmail.com> wrote:
>>
>>
>>
>> > Hi,
>>
>> > I have an issue, while trying to zooming the captured image.
>> > I am using BitBlt method to copy the device context of the window to
>> > the memory DC(CDC).
>>
>> > m_MemDc.BitBlt(0, 0, m_iWidth, m_iHeight, pDC, 0, 0, SRCCOPY);
>> > m_memDC is the variable of object CDC
>>
>> > pDC is a pointer variable to object CDC, which contains the window to
>> > be zoomed.
>>
>> > Then I am using Stretchblt method to copy the memory DC to the client
>> > DC to zoom to the required level
>>
>> > dc.StretchBlt(0, 0, m_iZoomLevel*m_iWidth, m_iZoomLevel*m_iHeight,
>> > &m_MemDc,
>> > 0, 0, m_iWidth, m_iHeight, RCCOPY);
>>
>> > Instead of copying (zooming) the image to the destination width and
>> > height, it draws the image with in the screen size.
>>
>> > Please let me know if I need to change something.
>>
>> > Thanks and Regards
>> > Srinivasan- Hide quoted text -
>>
>> - Show quoted text -
>
>