enable transparency in imagebox

This commit is contained in:
Adam D. Ruppe 2022-04-11 09:13:58 -04:00
parent f44c993695
commit 912047ccdd
1 changed files with 2 additions and 2 deletions

View File

@ -11333,7 +11333,7 @@ class ImageBox : Widget {
if(this.parentWindow && this.parentWindow.win) { if(this.parentWindow && this.parentWindow.win) {
if(sprite) if(sprite)
sprite.dispose(); sprite.dispose();
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_)); sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_, true));
} }
redraw(); redraw();
} }
@ -11367,7 +11367,7 @@ class ImageBox : Widget {
private void updateSprite() { private void updateSprite() {
if(sprite is null && this.parentWindow && this.parentWindow.win) { if(sprite is null && this.parentWindow && this.parentWindow.win) {
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_)); sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_, true));
} }
} }