+9
-0
lines changedFilter options
+9
-0
lines changed Original file line number Diff line number Diff line change
@@ -99,6 +99,15 @@ class AnimationChannel(val image: Image,
99
99
fun getFrameWidth(frame: Int) = getFrameData(frame).width
100
100
fun getFrameHeight(frame: Int) = getFrameData(frame).height
101
101
102
+
/**
103
+
* @return a computed image for a given [frameIndex]
104
+
*/
105
+
fun getFrameImage(frameIndex: Int): Image {
106
+
val frameData = getFrameData(frameIndex)
107
+
108
+
return Texture(image).subTexture(frameData.viewport).image
109
+
}
110
+
102
111
/**
103
112
* Returns next frame index or 0 if [frame] is last.
104
113
*/
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4