Click here to Skip to main content
15,899,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,

how will i enlarge the loaded the texture on a declared(defined ) rectangle vertices in vc++???

1)my rectangle is in,

int initdialog()
{
CRect rect(10,80,550,560);
{
m_jgpimage rect(NULL,rect,....)
}
}
2)upon this rect, i am loading texture.....
texture is loaded on rect...but my problem is to enlarge the texture without increasing CRect crect(..);
i know that texture depends on Crect rect(...)

sir is there any other option to enlarge loaded texture in vc++????
Posted

If I understand your problem you should look at StretchBlt API on MSDN.
 
Share this answer
 
Sir,

this is applicable for Bitmap images but i am loading JPG images..
 
Share this answer
 
Comments
Niklas L 1-Jul-11 4:44am    
You cannot render a JPEG directly. It has to be unpacked prior to rendering.

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