Tuya iOS Smart Life App SDK 5.15.0
ThingEncryptDynamicImage Class Reference

#import <ThingEncryptDynamicImage.h>

Inheritance diagram for ThingEncryptDynamicImage:
<ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage>

Class Methods

(nullable ThingEncryptDynamicImage *) + imageNamed:
 
(nullable ThingEncryptDynamicImage *) + imageWithContentsOfFile:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:scale:
 
(nullable ThingEncryptDynamicImage *) + imageNamed:
 
(nullable ThingEncryptDynamicImage *) + imageWithContentsOfFile:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:scale:
 
(nullable ThingEncryptDynamicImage *) + imageNamed:
 
(nullable ThingEncryptDynamicImage *) + imageWithContentsOfFile:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:scale:
 
(nullable ThingEncryptDynamicImage *) + imageNamed:
 
(nullable ThingEncryptDynamicImage *) + imageWithContentsOfFile:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:
 
(nullable ThingEncryptDynamicImage *) + imageWithData:scale:
 

Properties

ThingEncryptImageType animatedImageType
 
NSData * animatedImageData
 
NSUInteger animatedImageMemorySize
 
BOOL preloadAllAnimatedImageFrames
 

Additional Inherited Members

- Instance Methods inherited from <ThingEncryptAnimatedImage>
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 
(NSUInteger) - animatedImageFrameCount
 
(NSUInteger) - animatedImageLoopCount
 Animation loop count, 0 means infinite looping. More...
 
(NSUInteger) - animatedImageBytesPerFrame
 Bytes per frame (in memory). It may used to optimize memory buffer size. More...
 
(nullable UIImage *) - animatedImageFrameAtIndex:
 
(NSTimeInterval) - animatedImageDurationAtIndex:
 
(CGRect) - animatedImageContentsRectAtIndex:
 

Detailed Description

Definition at line 15 of file ThingEncryptDynamicImage.h.

Method Documentation

◆ imageNamed: [1/4]

+ (nullable ThingEncryptDynamicImage *) imageNamed: (NSString *)  name

◆ imageNamed: [2/4]

+ (nullable ThingEncryptDynamicImage *) imageNamed: (NSString *)  name

◆ imageNamed: [3/4]

+ (nullable ThingEncryptDynamicImage *) imageNamed: (NSString *)  name

◆ imageNamed: [4/4]

+ (nullable ThingEncryptDynamicImage *) imageNamed: (NSString *)  name

◆ imageWithContentsOfFile: [1/4]

+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: (NSString *)  path

◆ imageWithContentsOfFile: [2/4]

+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: (NSString *)  path

◆ imageWithContentsOfFile: [3/4]

+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: (NSString *)  path

◆ imageWithContentsOfFile: [4/4]

+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: (NSString *)  path

◆ imageWithData: [1/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data

◆ imageWithData: [2/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data

◆ imageWithData: [3/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data

◆ imageWithData: [4/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data

◆ imageWithData:scale: [1/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data
scale: (CGFloat)  scale 

◆ imageWithData:scale: [2/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data
scale: (CGFloat)  scale 

◆ imageWithData:scale: [3/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data
scale: (CGFloat)  scale 

◆ imageWithData:scale: [4/4]

+ (nullable ThingEncryptDynamicImage *) imageWithData: (NSData *)  data
scale: (CGFloat)  scale 

Property Documentation

◆ animatedImageData

- (NSData *) animatedImageData
readnonatomicassign

If the image is created from animated image data (multi-frame GIF/APNG/WebP), this property stores the original image data.

Definition at line 31 of file ThingEncryptDynamicImage.h.

◆ animatedImageMemorySize

- (NSUInteger) animatedImageMemorySize
readnonatomicassign

The total memory usage (in bytes) if all frame images was loaded into memory. The value is 0 if the image is not created from a multi-frame image data.

Definition at line 37 of file ThingEncryptDynamicImage.h.

◆ animatedImageType

- (ThingEncryptImageType) animatedImageType
readnonatomicassign

If the image is created from data or file, then the value indicates the data type.

Definition at line 25 of file ThingEncryptDynamicImage.h.

◆ preloadAllAnimatedImageFrames

- (BOOL) preloadAllAnimatedImageFrames
readwritenonatomicassign

Preload all frame image to memory.

@discussion Set this property to YES will block the calling thread to decode all animation frame image to memory, set to NO will release the preloaded frames. If the image is shared by lots of image views (such as emoticon), preload all frames will reduce the CPU cost.

See animatedImageMemorySize for memory cost.

Definition at line 49 of file ThingEncryptDynamicImage.h.


The documentation for this class was generated from the following files: