Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
J2ME in a Nutshell phần 4
Đang chuẩn bị liên kết để tải về tài liệu:
J2ME in a Nutshell phần 4
Tuyết Hoa
47
52
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bởi vì một phác thảo chạm vào các điểm ảnh tại mỗi đầu, hình chữ nhật này bao gồm các điểm (0, 0), (4, 0), (0, 2), và (4, 2). Ngược lại, một hình chữ nhật đầy tạo ra bằng cách sử dụng các đối số tương tự sử dụng các giá trị chiều rộng và chiều cao để mô tả các khu vực chính xác để được lấp đầy: | J2ME in a Nutshell Figure 5-7. Outline differences between drawn and filled rectangles t g.d nwRect 0 Ũ 4 Ĩ 0 3 1 01 Ĩ.Ũ 3.3 5.01 t The rectangle at the top of Figure 5-7 was drawn using this code g.drawRect 0 0 4 2 Because an outline touches the pixels at each end this rectangle includes the points 0 0 4 0 0 2 and 4 2 . By contrast a filled rectangle created using the same arguments uses the width and height values to describe the exact area to be filled 4 pixels wide and 2 pixels down as shown at the bottom in Figure 5-7. You can see that a drawn rectangle occupies one more pixel each to the right and at the bottom than a filled rectangle. You can see this for yourself by selecting the RectangleFills example from GraphicsMiDiet. This creates a rectangle drawn with a dotted outline and a filled rectangle using identical arguments for each. Magnified versions of the top left and bottom right corners of these rectangles are shown in Figure 5-8. The figure clearly shows that the color fill does not reach the right side or the bottom of the drawn rectangle but it does cover the top and left of it. Figure 5-8. Drawn and filled rectangles 5.4.2 Arcs Elliptical or circular arcs including complete circles and ellipses can be drawn either in outline or filled using the following methods public void drawArc int x int y int width int height int startAngle int arcAngle 151 J2ME in a Nutshell public void fillArc int x int y int width int height int startAngle int arcAngle The overall shape of the arc is determined by its bounding rectangle specified by the x y width and height arguments if the width and height values are the same the arc is a circle or part of a circle. The portion of the ellipse or circle to be drawn is controlled by the startAngle and arcAngle arguments both of which are measured in degrees. The startAngle argument specifies where the arc begins it is measured relative to the the three o clock position on the bounding rectangle. The angle through which the .
TÀI LIỆU LIÊN QUAN
Bài giảng Lập trình J2ME cho thiết bị di động - Phần 1
Dùng NetBean 6.0 lập trình J2ME
Đồ án "Lập trình thiết bị di động trên J2ME"
Lập trình J2ME làm game cho điện thoại
Giáo trình: Java và công nghệ J2ME
LUẬN VĂN:NGHIÊN CỨU CÔNG NGHỆ J2ME VÀ THỬ NGHIỆM LẬP TRÌNH ỨNG DỤNG TRÊN THIẾT BỊ DI ĐỘNG
Bài giảng Lập trình trên thiết bị di động: Chương 2 (Phần 2) - ThS. Phan Nguyệt Minh
Đề tài “Lập trình thiết bị di động trên J2ME”
Hệ thống bài tập J2ME
Bài giảng Lập trình J2ME cho thiết bị di động - Phần 2
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.