ImageFrame

public class ImageFrame

动图单帧对象

  • 单帧图片

    Declaration

    Swift

    public let image: UIImage
  • 单帧时长

    Declaration

    Swift

    public let duration: TimeInterval
  • 创建单帧对象

    Declaration

    Swift

    public init(image: UIImage, duration: TimeInterval)
  • 根据单帧对象创建动图Image

    Declaration

    Swift

    public class func animatedImage(frames: [ImageFrame]?) -> UIImage?
  • 从动图Image创建单帧对象数组

    Declaration

    Swift

    public class func frames(animatedImage: UIImage?) -> [ImageFrame]?