| drawImage() | ใช้วาดรูปภาพจาก path ของ object image โดยเริ่มจากตำแหน่ง ( x, y ) ที่กำหนด |
|---|
method:drawImage ( object_image, x, y, weight, height, this );
return type:void
content:ใช้วาดรูปภาพจาก path ของ object image โดยเริ่มจากตำแหน่ง ( x, y ) ที่กำหนด และมีขนาดตามที่กำหนด
example:Toolkit tool = getToolKit (); Image image = tool.getImage ( "C:/panda.jpg" ); Graphics graph = new Graphics (); graph.drawImage ( image, 0, 0, 200, 100, this );