tailieunhanh - Visual Basic 6 Black Book phần 4

Sử dụng Bullets Hộp Rich Text Rich hộp văn bản hỗ trợ các viên đạn, những chấm đen xuất hiện trong danh sách các mục mà bạn muốn đặt ra trong văn bản. Ví dụ, bạn không thể nhóm các nút lựa chọn cùng với hình dạng) Trong hình 14,10, đã sử dụng các biện pháp kiểm soát hình dạng để nhóm các nút trực quan thành hai nhóm. | Visual Basic 6 Black Book Picture Boxes And Image Controls Simpo PDF Merge and Split Unregistered Version - http Accessing Individual Pixels In A Picture Box The Testing Department is calling. Wouldn t it be better to let users select new colors in your SuperDuperTextPro program by just clicking the new color they want in a picture box instead of asking them to type in new color values Hmm you think how do you do that You can use the Point method to determine the color of a pixel in a picture box. This method returns the red green and blue colors in one Long integer. Let s see an example to make this clear. Here we ll let the user click one picture box Picturel to set the color in another Picture2 using the MouseDown event Private Sub Picture1_MouseDown Button As Integer Shift As Integer _ X As Single Y As Single End Sub When the user clicks a pixel in Picturel we ll set the background color of Picture2 to the same color and we get that color using the Point method Private Sub Picture1_MouseDown Button As Integer Shift As Integer _ X As Single Y As Single X Y End Sub The result of this code appears in Figure . When the user clicks a point in the top picture box the program sets the background color of the bottom picture box to the same color. Figure Using the Point method to get a point s color. TIP Besides getting a pixel with the Point method you can also set individual pixels with the PSet method. See Drawing Lines And Circles In A Picture Box earlier in this chapter. Copying Pictures To And Pasting Pictures From The Clipboard The users love your new graphics program SuperDuperGraphics4U but would like to export the images they create to other programs. How can you do that You can copy the images to the Clipboard letting the user paste them into other programs. To place data http 8080 temp ch10 1 of 3 3 14 2001 1 42 12 AM Visual Basic 6 Black Book Picture Boxes And Image .

TỪ KHÓA LIÊN QUAN
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.