freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

第04章-applet及其應(yīng)用-資料下載頁

2025-09-25 19:00本頁面
  

【正文】 y0, Y, Y, false)。 } } 30 Applet小程序 Html Body Applet code= width=500 height=300 /Applet /Body /Html 31 繪制圖形 4. 繪制幾何圖形 ? 畫多邊形 ? public void drawPolygon(int xPoints[], int yPoints[], int Points) ? public void fillPolygon(int xPoints[], int yPoints[], int Points) ? public void drawPolygon(Polygon p) ? public void fillPolygon(Polygon p) ? Polygon類構(gòu)造方法 ? Polygon() ? Polygon(int xPoints[], int yPoints[], int numberOfPoints) 32 演示圖像 1. 定義圖像對象 ? ? 圖像高度和寬度 ? int getHeight(ImageObserver observer) ? int getWidth(ImageObserver observer) 2. 獲取圖像信息方法 ? Image getImage(URL url, String name) 3. 顯示圖像的操作 ? drawImage(Image img, int x, int y, ImageObserver observer) ? drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) 33 Applet小程序 import 。 import .*。 public class Exam4_13 extends Applet { public void paint(Graphics g) { Image pic。 pic = getImage(getDocumentBase(), “”)。 int x0 = 10, y0 = 30。 int w = (this)。 int h = (this)。 (pic, x0, y0, w/8, h/8, this)。 (pic, x0+150, y0, w/12, h/12, this)。 (pic, x0+150, y0+100, w/15, h/15, this)。 (pic, x0+250, y0+30, (int)(w*), (int)(h*), this)。 } } 34 Applet小程序 Html Body Applet code= width=500 height=300 /Applet /Body /Html 35 演示圖像 4. 動畫 ? 創(chuàng)建 Image類的對象數(shù)組 ? drawImage() ? ()方法 ? repaint() 5. 播放聲音 ? public void play(URL url) ? public AudioClip getAudio(URL url) ? play()方法 /loop()方法 /stop()方法 36 第四章 結(jié)束!
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1