Stretch Blt Bitmap 
Author Message
 Stretch Blt Bitmap

Hi all,

I have a Blt bitmap that had width 100 and height 600 and I want to
place it in a rect that has width 200 and height 600. I use the
StretchBlt() func, but it just causes my application to crash. In the
"Details >>" it says that it was my ATI driver that crashed. Does any
one have any clue what id going on? Thanx



Fri, 08 Feb 2002 03:00:00 GMT  
 Stretch Blt Bitmap
Maybe your ATI driver doesn't support stretched blitting? Maybe you need to
update it.

What code did you use to StretchBlt?

--
Scott Tunstall
MFC & COM consultant

Personal URL: www.kwikrite.clara.net/bdash/

Quote:

>Hi all,

>I have a Blt bitmap that had width 100 and height 600 and I want to
>place it in a rect that has width 200 and height 600. I use the
>StretchBlt() func, but it just causes my application to crash. In the
>"Details >>" it says that it was my ATI driver that crashed. Does any
>one have any clue what id going on? Thanx



Fri, 08 Feb 2002 03:00:00 GMT  
 Stretch Blt Bitmap
On Mon, 23 Aug 1999 17:05:50 +0100, "Scott Tunstall"

Quote:

>Maybe your ATI driver doesn't support stretched blitting? Maybe you need to
>update it.

>What code did you use to StretchBlt?

Here is the code I used:

************************
CDC TempDC;

TempDC.CreateDC("DISPLAY", NULL, NULL, NULL);

TempDC.SetStretchBltMode( COLORONCOLOR );

TempDC.StretchBlt(487+27, 66, 486, 682, &TempDC, 27+151, 66, 186, 682,
SRCCOPY);
***********************
And it just crashes



Sat, 09 Feb 2002 03:00:00 GMT  
 Stretch Blt Bitmap
tempDC.StretchBlt(,,,&TempDC).... i thought source and destination should be
different cdc's


Quote:
> On Mon, 23 Aug 1999 17:05:50 +0100, "Scott Tunstall"

> >Maybe your ATI driver doesn't support stretched blitting? Maybe you need
to
> >update it.

> >What code did you use to StretchBlt?

> Here is the code I used:

> ************************
> CDC TempDC;

> TempDC.CreateDC("DISPLAY", NULL, NULL, NULL);

> TempDC.SetStretchBltMode( COLORONCOLOR );

> TempDC.StretchBlt(487+27, 66, 486, 682, &TempDC, 27+151, 66, 186, 682,
> SRCCOPY);
> ***********************
> And it just crashes



Sat, 09 Feb 2002 03:00:00 GMT  
 Stretch Blt Bitmap


Quote:
>tempDC.StretchBlt(,,,&TempDC).... i thought source and destination should be
>different cdc's

I want to use the same DC. Can't I?


Sat, 09 Feb 2002 03:00:00 GMT  
 Stretch Blt Bitmap
no... 1 dc has 1 bitmap.. so the source and destination would be the same..
(=difficult (slow) blitting)
try CreateCompatibleDC(), and select your 2nd bitmap in this dc


Quote:


> >tempDC.StretchBlt(,,,&TempDC).... i thought source and destination should
be
> >different cdc's

> I want to use the same DC. Can't I?



Sat, 09 Feb 2002 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. 16 million colour bitmap wont Blt

2. stretch bitmap

3. Stretch bitmap

4. added lines are too fat when Stretching Bitmap in memory DC

5. How can I have a CFormView with background bitmap (tile or stretch)

6. Stretch bitmap

7. How to stretch a bitmap for CImageList::Add()?

8. Stretch a bitmap

9. stretching a bitmap to print

10. Prining a Bitmap Stretches it

11. Stretch a loaded bitmap ?

12. BLT Error when printing

 

 
Powered by phpBB® Forum Software