From 288acb019ee68614589a9e53e2365ce96512be0e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 17 Jun 2025 11:49:16 +0800 Subject: [PATCH] add getBackgroundImage to ThermionViewerFFI --- .../lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart index d3bc626e..62cb3646 100644 --- a/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart +++ b/thermion_dart/lib/src/viewer/src/ffi/src/thermion_viewer_ffi.dart @@ -199,6 +199,14 @@ class ThermionViewerFFI extends ThermionViewer { } } + /// + /// + /// + Future getBackgroundImage() async { + _backgroundImage ??= await BackgroundImage.create(this, scene); + return _backgroundImage!; + } + /// /// ///