平铺背景图像以保存文件大小 [英] tile background image to save filesize

查看:66
本文介绍了平铺背景图像以保存文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://blog.wpfwonderland.com/2009/04/04/using-a-tile-brush-in-expression-blend/



这不是我想要的吗?


我试图拍摄20 x 20像素的图像并让它重复填充页面

解决方案

呃,这个链接比你需要的多一点但是,你想要TileBrush,更具体地说...... TileMode设置为" ; Tile" ;;


示例,找到一个标记为"Tile"的文件。对于一些快速的代码片段,但它很直接。干杯。 :)


http://msdn.microsoft.com/en-us/library/system.windows.media.tilebrush.tilemode.aspx


http://blog.wpfwonderland.com/2009/04/04/using-a-tile-brush-in-expression-blend/

this isnt quite what im looking for is it?

im trying to take an image 20 by 20 Pixels and have it repeat to fill up the page

解决方案

Eh, the link adds a bit more than you need but yes, you want TileBrush, with more specifically...TileMode set to "Tile";

Examples, find the one labled "Tile" for some quick code snippet but its pretty straight forward. Cheers. :)

http://msdn.microsoft.com/en-us/library/system.windows.media.tilebrush.tilemode.aspx


这篇关于平铺背景图像以保存文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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