Nimmt ein Bild auf, wenn die Kamerafunktion aktiviert ist.
Kennung: take_picture
Elemente
file_path: Pfad und Dateiname für das Bild
- Erforderlich: ja
- Standardwert: leer
Qualität: Einstellungen für die Bildqualität
Mögliche Werte: [ 0,100 ]
- Erforderlich: nein
- Standardwert: 100
width: Breite des Bildes in Pixeln
Mögliche Werte: Numerische Werte
- Erforderlich: nein
- Standardwert: aktuelle Bildgröße der Kamera
height: Höhe des Bildes in Pixeln
Mögliche Werte: Numerische Werte
- Erforderlich: nein
- Standardwert: aktuelle Höhe der Kamera
Ausgabe
ERROR: Wenn beim Aufruf der Aktion ein Problem auftritt.
ERFOLG: Wenn die Aktion ohne Probleme aufgerufen wird
MEDIA_PROCESSED: Das Bild wurde erfolgreich aufgenommen. Tritt nach dem Befehl 'SUCCESS' auf
Beispiele
Minimal
<take_picture id="take_picture_location">
<param name="file_path">#{filename}.jpg</param>
</take_picture>
Alle Optionen
<take_picture id="take_picture_location" descriptor="Take picture from the current location">
<param name="file_path">/sdcard/#{filename}.jpg</param>
<param name="quality">70</param>
<param name="width">480</param>
<param name="height">640</param>
</take_picture>