Clearing a Pgraphic after using?
in
Programming Questions
•
1 year ago
Im loading a picture search from the web using Pgraphic this is working fine but when i go to search the next picture, it doesn't get rid of the old picture data
So i guess what i am asking, is there a way to clear all the data in my Pgraphic after i have saved?
String url = pic_search;
online = loadImage(pic_search, "png");
rc.beginDraw();
rc.image(online, 0,0,500,500);
rc.endDraw();
rc.save("picture_search.jpg");
thanks again :)
So i guess what i am asking, is there a way to clear all the data in my Pgraphic after i have saved?
String url = pic_search;
online = loadImage(pic_search, "png");
rc.beginDraw();
rc.image(online, 0,0,500,500);
rc.endDraw();
rc.save("picture_search.jpg");
thanks again :)
1