Skip to content

Commit

Permalink
Added mojo.graphics.Image.GetPixmap() - by CallMeAdam
Browse files Browse the repository at this point in the history
Signed-off-by: D-a-n-i-l-o <D-a-n-i-l-o@users.noreply.github.com>
  • Loading branch information
D-a-n-i-l-o committed Sep 28, 2021
1 parent 1d390a9 commit 9778ac7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/mojo/graphics/image.wx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<image>.GetPixmap().Save( path )
#end
method GetPixmap:Pixmap()
If Not _managed Then Return Null
Return _managed
End method

'------------------------------------------------------------

#rem wonkeydoc @hidden Sets an image texture.
Expand Down

0 comments on commit 9778ac7

Please sign in to comment.