我想知道他们的基本含义,何时/如何使用它们.
解决方法 我发现一个 tutorial说明了UIImageRenderingMode的例子.从教程:
总结UIImageRenderingModeAlwaystemplate mode will replace all non-transparent colors on
a UIImage with the tint color. The entire background and any portion of the image
that you do not wish to render using the tint color must be completely transparent.UIImageRenderingModeAlwaysOriginal. When this is applIEd the tint color is never
applIEd to the image so the original color is always used when rendering the
image.UIImageRenderingModeautomatic automatically decIDes which rendering mode to use based on where the image is being displayed. This is the default value for images.
以上是内存溢出为你收集整理的ios – UIImage RenderingMode:UIImageRenderingModeAutomatic vs UIImageRenderingModeAlwaysOriginal vs UIImageRenderingModeAlwaysTemplate [closed]全部内容,希望文章能够帮你解决ios – UIImage RenderingMode:UIImageRenderingModeAutomatic vs UIImageRenderingModeAlwaysOriginal vs UIImageRenderingModeAlwaysTemplate [closed]所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)