размер изображения для UIImages, 1024 x 1024?

Состояние документов Apple:

You should avoid creating UIImage objects that are greater than 1024 x 1024 in size. Besides the large amount of memory such an image would consume, you may run into problems when using the image as a texture in OpenGL ES or when drawing the image to a view or layer. This size restriction does not apply if you are performing code-based manipulations, such as resizing an image larger than 1024 x 1024 pixels by drawing it to a bitmap-backed graphics context. In fact, you may need to resize an image in this manner (or break it into several smaller images) in order to draw it to one of your views.

Я предполагаю, что это означает, что если мы работаем с не -квадратными изображениями, мы должны разбить их на изображения меньшего размера? Есть ли какая-либо конкретная документация или объяснения по этому поводу, или у кого-нибудь есть какие-либо советы из опыта?

Спасибо за чтение.

5
задан Mrwolfy 20 August 2012 в 02:35
поделиться