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

正文內(nèi)容

第四章圖形編程(參考版)

2024-10-02 12:34本頁面
  

【正文】 } private Image image。 j * imageHeight = getHeight()。 i * imageWidth = getWidth()。 (image, 0, 0, null)。 int imageWidth = (this)。 try { (0)。 MediaTracker tracker = new MediaTracker(this)。 Try{(id)。 Int id=1。 ? } 圖象的跟蹤加載 使用 MediaTracker類中的方法 addImage()可以將一個(gè)圖象的加載過程放入媒體跟蹤器,從而實(shí)現(xiàn)對圖象加載過程的跟蹤 MediaTracker tracker=new MediaTracker()。 例:將字符串顯示在畫板中央的例子 API: Font(String name,int style,int Size) String getFontName() String getFamily() String getName() Retangle2D getStringBounds(String s, FountRenderContext context) float getAscent() float getDecent() float getHeight() float getWeight() void setFont(Font font) void DrawString(String str,int x,int y) 四 .圖象--- 在 Java應(yīng)用程序 中須通過使用 Toolkit對象,調(diào)用 getDefaultToolkit(),完成將一個(gè)圖象文件加載到程序中,再調(diào)用Graphics類提供的 DrawImage()顯示它。 double basey=y+ascent。 double y=(getHeigth() ())/2。 Retangle2D bounds= f. getStringBounds(message,context)。 Font f=new Foun(“serif”,14)。 double descent= () +()。 double stringheigth= ()。 Retangle2D bounds= f. getStringBounds(message,context)。 Font f=new Foun(“serif”,14)。 (serif)。 // a dull bluegreen (ellipse)。 (rect)。 (rect)。 Rectangle2D rect = new (leftX, topY,width, height)。 double width = 200。 // draw a rectangle double leftX = 100。 void setcolor(Color c) void setPaint(paint p) void setBackground(Color c) void setForeground(Color c) 例:填充顏色的例子 class FillPanel extends JPanel { public void paintComponent(Graphics g) { (g)。 (“Set Color”,100,100) black、 blue、 cyan、 darkgray、 gray、green、 lightgray、 magenta、 orange、pink、 red、 white、 yellow 通過指定紅綠藍(lán)三色比例,用 Color對象來復(fù)合成一種新的顏色。 } } API (float x,float y,float width, float height) (double x,double y, double width,double height) (double x,double y, double width,double height) (Point2D start,Poi
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1