Rect
矩形的类。
父类Object
类方法Rect.new(x, y, width, height)
生成 Rect 对象。
方法set(x, y, width, height)
设定所有属性。
属性x
矩形左上角的 X 座标。
y
矩形左上角的 Y 座标。
width
矩形的宽度。
height
矩形的高度。
rect
取得位图的矩形(Rect)。
blt(x, y, src_bitmap, src_rect[, opacity])
传送 src_bitmap 的矩形 src_rect(Rect)到该位图的座标(x,y)。
opacity 指定其不透明度,范围为 0 ~ 255。
stretch_blt(dest_rect, src_bitmap, src_rect[, opacity])
传送 src_bitmap 的矩形 src_rect(Rect)到该位图的矩形 dest_rect(Rect)。
opacity 指定其不透明度,范围为 0 ~ 255。
fill_rect(x, y, width, height, color)
fill_rect(rect, color)
以 color(Color)颜色填充该位图的矩形(x,y,width,height)或 rect(Rect)。
src_rect
传送位图的矩形(Rect)。
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |