You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cancels an active request for an image from the image cache.
171
+
172
+
@param entity The entity that uniquely identifies the source image.
173
+
174
+
@param formatName The format name that uniquely identifies which image table to look in for the cached image.
175
+
176
+
@discussion After this method is called, the completion block of the <[FICImageCacheDelegate imageCache:wantsSourceImageForEntity:withFormatName:completionBlock:]> delegate
177
+
method for the corresponding entity, if called, does nothing.
This method is called on the delegate when the image cache has received an image retrieval cancellation request.
248
+
249
+
@param imageCache The image cache that has received the image retrieval cancellation request.
250
+
251
+
@param entity The entity that uniquely identifies the source image.
252
+
253
+
@param formatName The format name that uniquely identifies which image table to look in for the cached image.
254
+
255
+
@discussion When an image retrieval cancellation request is made to the image cache, it removes all of its internal bookkeeping for requests. However, it is still the
256
+
delegate's responsibility to cancel whatever logic is it performing to provide a source image to the cache (e.g., a network request).
`FICImageFormat` acts as a definition for the types of images that are stored in the image cache. Each image format must have a unique name, but multiple formats can belong to the same family.
20
-
All images associated with a particular format must have the same image dimentions and opacity preference. You can define the maximum number of entries that an image format can accommodate to
21
-
prevent the image cache from consuming too much disk space. Each `<FICImageTable>` managed by the image cache is associated with a single image format.
`FICImageFormat` acts as a definition for the types of images that are stored in the image cache. Each image format must have a unique name, but multiple formats can belong to the same family.
27
+
All images associated with a particular format must have the same image dimentions and opacity preference. You can define the maximum number of entries that an image format can accommodate to
28
+
prevent the image cache from consuming too much disk space. Each `<FICImageTable>` managed by the image cache is associated with a single image format.
The size, in pixels, of the images stored in the image table created by this format. This takes into account the screen scale.
63
+
A bitmask of type `<FICImageFormatStyle>` that defines the style of the image format.
64
+
65
+
`FICImageFormatStyle` has the following values:
66
+
67
+
- `FICImageFormatStyle32BitBGRA`: Full-color image format with alpha channel. 8 bits per color component, and 8 bits for the alpha channel.
68
+
- `FICImageFormatStyle32BitBGR`: Full-color image format with no alpha channel. 8 bits per color component. The remaining 8 bits are unused.
69
+
- `FICImageFormatStyle16BitBGR`: Reduced-color image format with no alpha channel. 5 bits per color component. The remaining bit is unused.
70
+
- `FICImageFormatStyle8BitGrayscale`: Grayscale-only image format with no alpha channel.
71
+
72
+
If you are storing images without an alpha component (e.g., JPEG images), then you should use the `FICImageFormatStyle32BitBGR` style for performance reasons. If you are storing very small images or images
73
+
without a great deal of color complexity, the `FICImageFormatStyle16BitBGR` style may be sufficient and uses less disk space than the 32-bit styles use. For grayscale-only image formats, the
74
+
`FICImageFormatStyle8BitGrayscale` style is sufficient and further reduces disk space usage.
// This completion block may be called much later. We should check to make sure this cell hasn't been reused for different photos before displaying the image that has loaded.
0 commit comments