lemon_engine
library
Functions
-
buildImageBytes(Uint8List bytes)
→ Future<Image>
-
-
convertDurationToFramesPerSecond(Duration duration)
→ int
-
-
convertFramesPerSecondToDuration(int framesPerSecond)
→ Duration
-
-
copyAreaFromImage({required Image image, required int x, required int y, required int width, required int height})
→ Future<Image>
-
-
loadAssetBytes(String url)
→ Future<Uint8List>
-
-
loadAssetImage(String url)
→ Future<Image>
-
-
renderCanvas({required Canvas canvas, required Image image, required double srcX, required double srcY, required double srcWidth, required double srcHeight, required double dstX, required double dstY, double anchorX = 0.5, double anchorY = 0.5, double scale = 1.0, int color = 1, BlendMode blendMode = BlendMode.dstATop})
→ void
-
-
renderCanvasAbs({required Canvas canvas, required Image image, required double srcLeft, required double srcTop, required double srcRight, required double srcBottom, required double dstX, required double dstY, double anchorX = 0.5, double anchorY = 0.5, double scale = 1.0, double rotation = 0, int color = 1, BlendMode blendMode = BlendMode.dstATop})
→ void
-
-
writeToPng({required int width, required int height, required Uint32List colors})
→ Uint8List
-