如何使用arduino提取网页中的图片并显示在自己的网页上

如何使用arduino提取网页中的图片并显示在自己的网页上,第1张

使用arduino提取网页中的并显示在自己的网页上的方法:
1、设置screenimage(image, xPos, yPos);的参数:
image : a named instance of PImage
xPos : int, location on the x-axis to start drawing
yPos : int, location on the y-axis to start drawing
2、举例说明:
PImage logo;
void setup() {
// initialize the screen
EsploraTFTbegin();
// initialize the SD card
SDbegin(SD_CS);
// set the background the black
EsploraTFTbackground(0, 0, 0);
// load the image into the named instance of PImage
logo = EsploraTFTloadImage("arduinobmp");
// if it is a valid image file, turn the Esplora's LED green
if (logoisValid()) {
EsplorawriteGreen(255);
}
else{
// if it is not valid, turn the LED red
EsplorawriteRed(255);
}
// draw the image on the screen starting at the top left corner
EsploraTFTimage(logo, 0, 0);
}
void loop() {
//循环处理另一个网页上的,存放到本网页的固定位置
}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/13384040.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-25
下一篇 2023-07-25

发表评论

登录后才能评论

评论列表(0条)

保存