如何将加载的纹理放大到指定的矩形顶点上? [英] how to enlarge loaded texture on to the specified rectangle vertices?

查看:147
本文介绍了如何将加载的纹理放大到指定的矩形顶点上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

如何在vc ++中的已声明(定义)矩形顶点上放大加载的纹理?
1)我的矩形在其中,

int initdialog()
{
CRect rect(10,80,550,560);
{
m_jgpimage rect(NULL,rect,....)
}
}
2)在这个矩形上,我正在加载纹理.....
将纹理加载到rect ...上,但是我的问题是在不增加CRect的情况下扩大了纹理crect(..);
我知道纹理取决于Crect rect(...)

先生,还有其他方法可以在vc ++中扩大加载的纹理吗?????

解决方案

如果我理解您的问题,则应查看MSDN上的StretchBlt API.

先生,

这适用于位图图像,但我正在加载JPG图像.

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++????

解决方案

If I understand your problem you should look at StretchBlt API on MSDN.


Sir,

this is applicable for Bitmap images but i am loading JPG images..


这篇关于如何将加载的纹理放大到指定的矩形顶点上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆