9. สร้างใหม่จากเก่า

The Camtasia Studio video content presented here requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

 
รหัสที่ 9-18  การเพิ่มเมท็อด drawImage ในคลาส DWindow3D
public class DWindow3D extends DWindow {
  ...
  public void drawImage(DImage img, double x, double y, double z) {
    img.scaleTo(scale(1, z));
    super.draw(img, toSX(x, z), toSY(y, z));
  }
}
©2009 S.Prasitjutrakul