创建圆形图像Xaml
发布时间:2020-12-13 20:37:12 所属栏目:Windows 来源:网络整理
导读:在Windows Phone 8中,我想将图像放在一个圆圈中.是否有一个像网格一样的圆形容器?我知道有椭圆位,它不是一个容器 我就是这样做的. Ellipse Width="100" Height="100" Ellipse.Fill ImageBrush ImageBrush.ImageSource BitmapImage UriSource="/YourImage.pn
在Windows Phone 8中,我想将图像放在一个圆圈中.是否有一个像网格一样的圆形容器?我知道有椭圆位,它不是一个容器
我就是这样做的.
<Ellipse Width="100" Height="100"> <Ellipse.Fill> <ImageBrush> <ImageBrush.ImageSource> <BitmapImage UriSource="/YourImage.png" /> </ImageBrush.ImageSource> </ImageBrush> </Ellipse.Fill> </Ellipse> 作为最佳实践,请考虑将DecodePixelWidth和DecodePixelHeight设置为与椭圆相同的大小. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows应用商店应用 – WinJS:0x800a1391 – JavaScript运
- windows – 批处理字符串连接
- 故障转移群集如何在Windows 2008 R2中运行?
- 在Windows上使用IPython笔记本500服务器错误
- 使用Windows Azure进行GeoIP路由
- Windows – 使用cmd.exe以UTF-8编码保存文本文件
- 在windows dos shell下使用参数执行Perl脚本的正确命令行是
- Windows Server 2016 与 Linux 的网络性能对比测试
- windows-server-2008 – Windows部署服务器和通过PXE引导重
- windows – 线程ID与线程句柄
推荐文章
站长推荐
- hyper-v – 如何在Win2k8R2服务器核心盒上安装iS
- Windows中的计时器
- 使用.NET Core创建Windows服务(一) - 使用官方
- active-directory – Active Directory管理中心更
- windows-server-2003 – 使用ASP.NET InProc会话
- Windows Server如何与Windows桌面进行不同的优化
- .net – Win32 API FindFirstFile和FindNextFile
- Windows – 从java代码中编程查找绝对的java.exe
- windows – 使用robocopy进行IIS复制的WordPress
- uint128_t 添加 c++ 重载类型强制转换
热点阅读