UIImage+GIF.h 583 B

123456789101112131415161718192021222324
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. * (c) Laurin Brandner
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. #import "SDWebImageCompat.h"
  10. @interface UIImage (GIF)
  11. /**
  12. * Compatibility method - creates an animated UIImage from an NSData, it will only contain the 1st frame image
  13. */
  14. + (UIImage *)sd_animatedGIFWithData:(NSData *)data;
  15. /**
  16. * Checks if an UIImage instance is a GIF. Will use the `images` array
  17. */
  18. - (BOOL)isGIF;
  19. @end