draw_surface_part()


2D グラフィック機能

draw_surface_part

Draws part of a surface.

Syntax:

draw_surface_part( index, left, top, w, h, x, y );
index
サーフェースのインデックス番号
left
切り取り左上座標(X)
top
切り取り左上座標(Y)
width
切り取る幅
height
切り取る高さ
x
描画左上座標(X)
y
描画左上座標(Y)

戻り値

N/A
なし

Description

With this function you can draw part of any surface at a given position within the room. As with draw_surface you can specify a surface, but you then need to specify the relative coordinates within the surface of an area to select for drawing. This means that a left position of 0 and a top position of 0 would be the top left corner of the surface and all further coordinates should be taken from that position.

注意

サーフェースはいつでも破棄される可能性があります。ですのでsurface_exists()関数を使用して常に存在チェックをする必要があります。詳細についてはサーフェース機能についてを参照してください


Example:

draw_surface_part(surf, 8, 8, 32, 32, x, y);

This will draw a 32x32 area 8px by 8px in from the top left of the surface indexed in "surf", at the instances (x,y) position.

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 1874
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 2