Mediamanager:postPicture: Difference between revisions

From GiderosMobile
mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
=== Description ===
=== Description ===
Adds picture from given path to gallery (or opens save file dialog on pc).
Adds picture from given path to gallery (or opens save file dialog on pc).
<source lang="lua">
<syntaxhighlight lang="lua">
mediamanager:postPicture(path)
mediamanager:postPicture(path)
</source>
</syntaxhighlight>


=== Parameters ===
=== Parameters ===
Line 13: Line 13:


=== Example ===
=== Example ===
<source lang="lua">
<syntaxhighlight lang="lua">
--require plugin
--require plugin
require "media"
require "media"
Line 19: Line 19:
-- save picture to sdcard/pictures folder (*need write permission*)
-- save picture to sdcard/pictures folder (*need write permission*)
mediamanager:postPicture("gfx/ball.png")
mediamanager:postPicture("gfx/ball.png")
</source>
</syntaxhighlight>
 
=== See also ===
For mobile: '''[[Share:export]]'''


{{Media}}
{{Media}}

Latest revision as of 20:21, 20 February 2025