![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingEncryptDynamicImage.h>
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 | |
![]() | |
(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: |
Definition at line 15 of file ThingEncryptDynamicImage.h.
+ (nullable ThingEncryptDynamicImage *) imageNamed: | (NSString *) | name |
+ (nullable ThingEncryptDynamicImage *) imageNamed: | (NSString *) | name |
+ (nullable ThingEncryptDynamicImage *) imageNamed: | (NSString *) | name |
+ (nullable ThingEncryptDynamicImage *) imageNamed: | (NSString *) | name |
+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: | (NSString *) | path |
+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: | (NSString *) | path |
+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: | (NSString *) | path |
+ (nullable ThingEncryptDynamicImage *) imageWithContentsOfFile: | (NSString *) | path |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data | |
scale: | (CGFloat) | scale | |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data | |
scale: | (CGFloat) | scale | |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data | |
scale: | (CGFloat) | scale | |
+ (nullable ThingEncryptDynamicImage *) imageWithData: | (NSData *) | data | |
scale: | (CGFloat) | scale | |
|
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.
|
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.
|
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.
|
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.