在文字上绘制图像 [英] Draw an image on text

查看:122
本文介绍了在文字上绘制图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是的,我的意思是在文本上绘制图像,而不是相反
就像您可以在Microsoft Word中使用Art进行操作一样

用单词完成的示例:
https://sites.google.com/site/gadget7702441/image002.gif

(我的狗在文字上的图片)


我想知道csharp中是否有任何办法.

thanx



yes, i do mean draw an image on text, not the other way around
like you can do in microsoft word with word art

example done with word:
https://sites.google.com/site/gadget7702441/image002.gif

(picture of my dog on text)


I was wondering if there is any way of doing this in csharp.

thanx

推荐答案

亲密!

Lookee [
Coitainly!

Lookee[^]


不是只需编写somthin即可缩放文本并计算其在图像上覆盖的像素.然后创建与原始尺寸相同的新图像,但仅设置相关像素.因此,您将以文本的形式显示图像的一部分.我认为唯一的问题是确定其覆盖的像素.也许您可以在图像的副本上绘制文本,然后测试文本的位置,然后将相关像素从原始图像转移到最终的文本图像".
Y not simply write somthin that scales the text an calculates what pixels it covers on the image. Then create a new image of the same size as your original but only set the relevant pixels. Thus you would hav part of your image in the shape of the text. The only problem I percieve is working out what pixels it covers. Perhaps you could draw the text on a copy of your image then test that for where the text is and transfer the relevant pixels from the original image to the final "text image".


这篇关于在文字上绘制图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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