Description
Draws an image and load image from URL etc.
type of file : jpg, png
location of file : <file path> in your smart phone
Syntax
imagePath(s, x, y, w, h)
Parameters
s : file name in file path
x : x-coordinate
y : y-coordinate
w : width
h : height
Usages
imagePath("/mnt/sdcard/Download/filename.jpg", 200, 200, 100, 200)
imagePath("http://www.yourdomain.com/filename.png", 200, 200, 100, 200)
Examples in arduino
#include "AppGosu.h"
AppGosu app;
void setup() {
app.start();
app.clearAll();
app.imagePath("/mnt/sdcard/Download/filename.jpg", 200, 200, 100, 200);
}
void loop() {
}
Examples in other MCU (AVR, PIC, MSP430)
printf("imagePath('/mnt/sdcard/Download/filename.jpg',200,200,100,200);");
from AppGosu
-----------------------------------------
No comments:
Post a Comment