从gdi +创建纹理 [英] creating texture from gdi +

查看:59
本文介绍了从gdi +创建纹理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用gdi plus在内存中创建纹理

i want to create texture in memory using gdi plus

推荐答案

您可以使用Bitmap类,并从中生成图形(Graphics :: FromImage),绘制任何内容您想要的(参见Graphics类中的绘图功能),然后将其保存到文件(Bitmap :: Save)中. :)

jkchan
http://cgmath.blogspot.com [ ^ ]
You could use Bitmap class, and generate graphics from it(Graphics::FromImage), draw whatever you want(see drawing function in class Graphics), Then you save it to file (Bitmap::Save).. its simple as that. :)

jkchan
http://cgmath.blogspot.com[^]


这篇关于从gdi +创建纹理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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