?? 01.txt
字號(hào):
PaintPicture 語法解釋:
object.PaintPicture picture, x1, y1, width1, height1, x2, y2, width2,height2, opcode(這是全部敘述)。
object :你要畫圖的 Target 物件,這裏應(yīng)是 Picture1
picture: 你要畫圖的 Source 物件,這裏應(yīng)是 Picture2
x1, y1 從 Target 物件的那個(gè)座標(biāo)開始畫。
width1, height1 在Target 物件上畫多長多寬。
x2, y2 從 Source 物件的那個(gè)座標(biāo)開始取圖樣。
width2, height2 要取多長多寬的圖
opcode 貼圖模式,與 picture.drawmode 同義,如果你不做什麼特殊效果可以不填。
如何區(qū)塊取圖及貼圖:
現(xiàn)在假設(shè)我們要取 Picture2 左下角,20 平方點(diǎn)的圖貼在 picture1 的右上角,那指令是這樣下:
picture1.paintpicture picture2.picture,picture1.scalewidth-20,0,20,20,0,picture2.scaleheight-20,20,20
兩個(gè) picturebox.scalemode 要一樣,最好設(shè)為像素。
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -