ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.

ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.,第1张

概述我想知道如何将此属性用于UIImageView. 如Karol Kozub在 this article中所述,拉伸属性非常简单: The fraction of the original image left without stretching on the left is specified by X The fraction of the original image that gets s

我想知道如何将此属性用于UIImageVIEw.

解决方法 如Karol Kozub在 this article中所述,拉伸属性非常简单:

The fraction of the original image left without stretching on the left
is specifIEd by X

The fraction of the original image that gets @R_520_4041@ in the x-axis
is specifIEd by WIDth

The fraction of the original image left without stretching on the
right is equal to 1 – X – WIDth

If we use 0 for WIDth the @R_520_4041@ area will interpolate between
the last pixel of the left part and the first pixel of the right part

The y-axis works analogously

总结

以上是内存溢出为你收集整理的ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.全部内容,希望文章能够帮你解决ios – UIImageView的拉伸属性有什么用.我如何使用这个属性.所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1056300.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存