Lập trình đồ họa với AWT - Phần 3 ppt
... Ví dụ về quản lý sự kiện import java .awt. *; import java .awt. event.ActionEvent; import java .awt. event.ActionListener; public class TestButton { private Frame ... Các loại sự kiện (Eve nt) java.util.EventObject java .awt. AWTEvent ActionEvent java .awt. event AdjustmentEvent ComponentEvent ItemEvent Focu...
Ngày tải lên: 14/08/2014, 22:21
... MenuItem 3 T T h h ư ư v v i i ệ ệ n n A A W W T T AWT là viết tắt của Abstract Windowing Toolkit AWT cho phép tạo các thành phần đồ họa ... họa AWT cho phép nhận dữ liệu từ chuột, bàn phím Các thành phần đồ họa cơ bản của AWT Vật chứa (Container) Thành phần...
Ngày tải lên: 14/08/2014, 22:21
... Component (thành phần) Là một đối tượng đồ họa có thể hiển thị được trên màn hình và có thể tương tác với người dùng Là ... Frame import java .awt. *; public class UseLessFrame extends Frame { public UseLessFrame(){ super("Useless Frame"); setS ize (30 0,200); setVisible(true); } pub...
Ngày tải lên: 14/08/2014, 22:21
LẬP TRÌNH ĐỒ HỌA VỚI AWT
... Frame 33 C C á á c c t t h h à à n n h h p p h h n n A A W W T T Label frame.add(l1); frame.add(l2); frame.add(l3); frame.add(l4); frame.setVisible(true); ... Ví qun lý kin import java .awt. *; import java .awt. event.ActionEvent; import java .awt. event.ActionListener; public class TestButton...
Ngày tải lên: 25/04/2013, 20:49
Lập trình đồ họa trong C (phần 3) doc
... slope is calcu- lated from Eq. 3- 3 7 as 1 At the boundary between region 1 and region 2, dy/dx = - 1 and - - - - . - - . . - . - - - F~,y~rn' 3- 2 0 Ellipse ... units, but as displayed in Fig. 3- 3 2(b), it has an area of 20 units. In Fig. 3- 3 2(c), the original rectangle measurements are maintained by dis...
Ngày tải lên: 07/07/2014, 05:20
Lập trình đồ họa trong C (phần 8) ppt
... orientation relative to the psi- tion of objects in the scene. - - - - . . . . - - - - . - - - - - - - . . . . . . . . . . . . Figlrrt, 7 0- 3& lt;S The four Bezier ... B,,,(u) = f u12 - u) + i(u - 1) (3 - u), for 1 5 u < 2 I We obtain the next periodic blending function...
Ngày tải lên: 07/07/2014, 05:20
Lập trình đồ họa trong C (phần 10) ppt
... rotation-transformation matrix is to cal- culate unit uvn vectors and form the composite rotation matrix directly, as dis- - - - - - . - - - - - - - . - . - . . - - - - - ... u in the yz plane) through angle or onto the z axis. - - . . - . - . . - - . . . - . -...
Ngày tải lên: 07/07/2014, 05:20
Lập trình đồ họa với VB
... QBColor(i) Line -Step(Delta, Delta) Line -( X2, Y2 - Delta) Line -Step(-Delta, Delta) Line -( X1 + Delta, Y2) Line -Step(-Delta, -Delta) Line -( X1, Y1 + Delta) Line -Step(Delta, -Delta) End ... CurrentX =30 00 và CurrentY=4000 thì dòng code tương đương với: Line (30 00,4000 )-( 36 00,4500), vbMagenta 3. Dùng chữ Step để nói sự khác biệt từ CurrentX và Curre...
Ngày tải lên: 28/08/2012, 15:46
Lập trình đồ họa trong C (phần 2) potx
... selected. - . . Figure 2-4 3 A three-button track ball. (Courlrsyof Mtnsumne~l Sysfems lnc., Nomlk, Connccticul.) Section 2-5 Input Dwices . . . - - - - - - . Figure 2-4 5 ... - Figrrrc 2-1 9 Viewing a stereoscopic projection. (Courlesy of S1ered;mphics Corpomlion.) A stereoscopic viewing pair. (Courtesy ofj...
Ngày tải lên: 07/07/2014, 05:20
Lập trình đồ họa trong C (phần 4) pps
... factors s, = 2 and by - 1. - - - - - . . . - - - . - . . . . - -, - - Fig~~rc 5-7 A line scaled with Eq 5-1 2 using s, - 3. = 0.5 is reduced in size ... points. - tigr~rc 5-1 Translating a point from position P to'position P' with translation vector T. . . -...
Ngày tải lên: 07/07/2014, 05:20