CachingHint

public enum CachingHint : UInt32

CachingHint selects whether ia may internally cache Bitmap generated by decoding Image, or by copying Image from GPU to CPU. The default behavior allows caching Bitmap.

Choose kDisallow_CachingHint if Image pixels are to be used only once, or if Image pixels reside in a cache outside of ia, or to reduce memory pressure.

Choosing kAllow_CachingHint does not ensure that pixels will be cached. Image pixels may not be cached if memory requirements are too large or pixels are not accessible.

  • allows internally caching decoded and copied pixels

    Declaration

    Swift

    case allow = 0
  • disallows internally caching decoded and copied pixels

    Declaration

    Swift

    case disallow