Well I decided I would experiment with it today but I just can't get it to work.
PHP Code:
//#CLIENTSIDE
function onCreated() {
temp.panel = new TDrawingPanel();
temp.panel.setsize(getimgwidth(player.head), getimgheight(player.head));
temp.panel.drawimage(0, 0, player.head);
temp.panel.saveimage("test.png");
temp.panel.destroy();
}
The error.
GraalScript: Couldn't create object: type TDrawingPanel is not existing in script of Weapon Jerret/Debugger
Edit: I was able to find success with GuiDrawingPanel but I'm still curious as to why the above doesn't work.