mirrorImage()
指定するスロットにあるイメージの上下反転像または左右反転像を得る。
書式:
mirrorImage( slot
, x ,
y )
slot イメージのあるスロットナンバー
x
and
y true , false (0 , 1) 水平または上下の反転を指定する。
例:
loadimage("sprites.png",1)
pasteIcon( 10, 10, 1 )
mirrorImage( 1, 1,
0 )
pasteIcon( 100, 10, 1 )
mirrorImage( 1, 0,
1 )
pasteIcon( 10, 100, 1 )
mirrorImage( 1, 1,
1 )
pasteIcon( 100, 100, 1 )
waitKey