From 9778ac7096ac087b6b847e87f393aaf785058ab7 Mon Sep 17 00:00:00 2001 From: D-a-n-i-l-o Date: Tue, 28 Sep 2021 17:58:51 +0200 Subject: [PATCH] Added mojo.graphics.Image.GetPixmap() - by CallMeAdam Signed-off-by: D-a-n-i-l-o --- modules/mojo/graphics/image.wx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/mojo/graphics/image.wx b/modules/mojo/graphics/image.wx index 44b30423..409372dd 100644 --- a/modules/mojo/graphics/image.wx +++ b/modules/mojo/graphics/image.wx @@ -287,6 +287,18 @@ Class Image Extends Resource Setter( filePath:string ) _filePath = filePath End + + + #rem wonkeydoc The image's pixmap - usually used for internal stuff. + a superb example is to use this as a way of saving an image + In code do the following: + .GetPixmap().Save( path ) + #end + method GetPixmap:Pixmap() + If Not _managed Then Return Null + Return _managed + End method + '------------------------------------------------------------ #rem wonkeydoc @hidden Sets an image texture.