博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Using an Image for the Layer’s Content
阅读量:7239 次
发布时间:2019-06-29

本文共 901 字,大约阅读时间需要 3 分钟。

Using an Image for the Layer’s Content

Because a layer is just a container for managing a bitmap image, you can assign an image directly to the layer’s property. Assigning an image to the layer is easy and lets you specify the exact image you want to display onscreen. The layer uses the image object you provide directly and does not attempt to create its own copy of that image. This behavior can save memory in cases where your app uses the same image in multiple places.

The image you assign to a layer must be a type. (In OS X v10.6 and later, you can also assign an object.) When assigning images, remember to provide an image whose resolution matches the resolution of the native device. For devices with Retina displays, this might also require you to adjust the property of the image. For information on using high-resolution content with your layers, see Working with High-Resolution Images.

 

转载地址:http://ahrfm.baihongyu.com/

你可能感兴趣的文章
[LeetCode]83. Remove Duplicates from Sorted List
查看>>
[LeetCode]54. Spiral Matrix
查看>>
Linux镜像本地挂载,使用iso做yum源安装
查看>>
windows凭据管理
查看>>
《Inside C#》笔记(完) 程序集
查看>>
从零学Linux之第一章基础篇笔记
查看>>
SpringCloud学习系列之五-----配置中心(Config)和消息总线(Bus)完美使用版
查看>>
加密和安全
查看>>
搭建博客
查看>>
if特殊用法
查看>>
Lintcode128 Hash Function solution 题解
查看>>
运行告警系统
查看>>
Confluence 6 配置一个数据源连接
查看>>
手动升级 Confluence 6 - 升级以后
查看>>
人工智能AND机器人
查看>>
如何提高一个研发团队的“代码速度”?
查看>>
PMP学习
查看>>
php导致内存溢出
查看>>
MongoDB主从复制和副本集
查看>>
移动端、服务器端车牌识别的区别
查看>>