Difference between revisions of "Mediamanager:postPicture"

From GiderosMobile
m
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same 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>
  
 
{{Media}}
 
{{Media}}

Latest revision as of 15:31, 13 July 2023