Tuya iOS Smart Life App SDK 5.15.0
ThingEncryptSpriteSheetImage Class Reference

#import <ThingEncryptSpriteSheetImage.h>

Inheritance diagram for ThingEncryptSpriteSheetImage:
<ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage> <ThingEncryptAnimatedImage>

Instance Methods

(nullable instancetype) - initWithSpriteSheetImage:contentRects:frameDurations:loopCount:
 
(CGRect) - contentsRectForCALayerAtIndex:
 
(nullable instancetype) - initWithSpriteSheetImage:contentRects:frameDurations:loopCount:
 
(CGRect) - contentsRectForCALayerAtIndex:
 
(nullable instancetype) - initWithSpriteSheetImage:contentRects:frameDurations:loopCount:
 
(CGRect) - contentsRectForCALayerAtIndex:
 
(nullable instancetype) - initWithSpriteSheetImage:contentRects:frameDurations:loopCount:
 
(CGRect) - contentsRectForCALayerAtIndex:
 
- 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:
 

Properties

NSArray< NSValue * > * contentRects
 
NSArray< NSValue * > * frameDurations
 
NSUInteger loopCount
 

Detailed Description

Definition at line 14 of file ThingEncryptSpriteSheetImage.h.

Method Documentation

◆ contentsRectForCALayerAtIndex: [1/4]

- (CGRect) contentsRectForCALayerAtIndex: (NSUInteger)  index

Get the contents rect for CALayer. See "contentsRect" property in CALayer for more information.

Parameters
indexIndex of frame.
Returns
Contents Rect.

◆ contentsRectForCALayerAtIndex: [2/4]

- (CGRect) contentsRectForCALayerAtIndex: (NSUInteger)  index

Get the contents rect for CALayer. See "contentsRect" property in CALayer for more information.

Parameters
indexIndex of frame.
Returns
Contents Rect.

◆ contentsRectForCALayerAtIndex: [3/4]

- (CGRect) contentsRectForCALayerAtIndex: (NSUInteger)  index

Get the contents rect for CALayer. See "contentsRect" property in CALayer for more information.

Parameters
indexIndex of frame.
Returns
Contents Rect.

◆ contentsRectForCALayerAtIndex: [4/4]

- (CGRect) contentsRectForCALayerAtIndex: (NSUInteger)  index

Get the contents rect for CALayer. See "contentsRect" property in CALayer for more information.

Parameters
indexIndex of frame.
Returns
Contents Rect.

◆ initWithSpriteSheetImage:contentRects:frameDurations:loopCount: [1/4]

- (nullable instancetype) initWithSpriteSheetImage: (UIImage *)  image
contentRects: (NSArray< NSValue * > *)  contentRects
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Creates and returns an image object.

Parameters
imageThe sprite sheet image (contains all frames).
contentRectsThe sprite sheet image frame rects in the image coordinates. The rectangle should not outside the image's bounds. The objects in this array should be created with [NSValue valueWithCGRect:].
frameDurationsThe sprite sheet image frame's durations in seconds. The objects in this array should be NSNumber.
loopCountAnimation loop count, 0 means infinite looping.
Returns
An image object, or nil if an error occurs.

◆ initWithSpriteSheetImage:contentRects:frameDurations:loopCount: [2/4]

- (nullable instancetype) initWithSpriteSheetImage: (UIImage *)  image
contentRects: (NSArray< NSValue * > *)  contentRects
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Creates and returns an image object.

Parameters
imageThe sprite sheet image (contains all frames).
contentRectsThe sprite sheet image frame rects in the image coordinates. The rectangle should not outside the image's bounds. The objects in this array should be created with [NSValue valueWithCGRect:].
frameDurationsThe sprite sheet image frame's durations in seconds. The objects in this array should be NSNumber.
loopCountAnimation loop count, 0 means infinite looping.
Returns
An image object, or nil if an error occurs.

◆ initWithSpriteSheetImage:contentRects:frameDurations:loopCount: [3/4]

- (nullable instancetype) initWithSpriteSheetImage: (UIImage *)  image
contentRects: (NSArray< NSValue * > *)  contentRects
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Creates and returns an image object.

Parameters
imageThe sprite sheet image (contains all frames).
contentRectsThe sprite sheet image frame rects in the image coordinates. The rectangle should not outside the image's bounds. The objects in this array should be created with [NSValue valueWithCGRect:].
frameDurationsThe sprite sheet image frame's durations in seconds. The objects in this array should be NSNumber.
loopCountAnimation loop count, 0 means infinite looping.
Returns
An image object, or nil if an error occurs.

◆ initWithSpriteSheetImage:contentRects:frameDurations:loopCount: [4/4]

- (nullable instancetype) initWithSpriteSheetImage: (UIImage *)  image
contentRects: (NSArray< NSValue * > *)  contentRects
frameDurations: (NSArray< NSNumber * > *)  frameDurations
loopCount: (NSUInteger)  loopCount 

Creates and returns an image object.

Parameters
imageThe sprite sheet image (contains all frames).
contentRectsThe sprite sheet image frame rects in the image coordinates. The rectangle should not outside the image's bounds. The objects in this array should be created with [NSValue valueWithCGRect:].
frameDurationsThe sprite sheet image frame's durations in seconds. The objects in this array should be NSNumber.
loopCountAnimation loop count, 0 means infinite looping.
Returns
An image object, or nil if an error occurs.

Property Documentation

◆ contentRects

- (NSArray< NSValue * > *) contentRects
readnonatomicassign

Definition at line 37 of file ThingEncryptSpriteSheetImage.h.

◆ frameDurations

- (NSArray< NSValue * > *) frameDurations
readnonatomicassign

Definition at line 38 of file ThingEncryptSpriteSheetImage.h.

◆ loopCount

- (NSUInteger) loopCount
readnonatomicassign

Definition at line 39 of file ThingEncryptSpriteSheetImage.h.


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