UIImage+WebP.h 727 B

1234567891011121314151617181920212223
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <UIKit/UIKit.h>
  9. // This category is just use as a convenience method. For more detail control, use methods in `UIImage+MultiFormat.h` or directlly use `SDImageCoder`
  10. @interface UIImage (WebP)
  11. /**
  12. Create a image from the WebP data.
  13. This will create animated image if the data is Animated WebP. And will create a static image is the data is Static WebP.
  14. @param data The WebP data
  15. @return The created image
  16. */
  17. + (nullable UIImage *)sd_imageWithWebPData:(nullable NSData *)data;
  18. @end