Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
StretchBlt(hdc, 512-(ZOOM_SIZE*magnification), 512-(ZOOM_SIZE*magnification), ZOOM_SIZE*magnification, ZOOM_SIZE*magnification, hdc, x, y, ZOOM_SIZE, ZOOM_SIZE, SRCCOPY);

[EDIT]
StretchBlt(hdc, 512+10, 0, 512, 512, hdc, x, y, 60, 60, SRCCOPY);

this it wad i corrected but still can't work.
Posted
Updated 19-Apr-11 18:47pm
v2

Without knowing exactly what is going wrong - you don't tell us - I can guess that you have some serious visual distortion?

Think about it: your source and destination device contexts are the same. That means that the stretch will overwrite the source as it goes...
 
Share this answer
 
Comments
Niklas L 20-Apr-11 4:05am    
Sounds reasonable. 5 for psychic power.
OriginalGriff 20-Apr-11 4:10am    
You are the second person to accuse me of psychic powers this week...:laugh:
Niklas L 20-Apr-11 4:17am    
There might just be something to it then :)
OriginalGriff 20-Apr-11 4:21am    
I'll just pop out and get a tin-foil hat...
If your problem is a low-quality result image then you may have a look at my Plain C Resampling DLL[^]. On the other hand if your problems are incorrect values passed to the StretchBlt function then you should post some relevant code to get better help.
 
Share this answer
 
Comments
Rajesh R Subramanian 20-Apr-11 4:56am    
That's a blatant advertisement! [OK, I'm kidding] :)
CPallini 20-Apr-11 5:03am    
Precisely! :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900