fill.rotation

类型 数码
对象 BitmapPaint
显示.*
修订 发行版 2024.3703
另请参阅 BitmapPaint
ImageSheetPaint

概述

定义了 BitmapPaint 图像的旋转。

示例

-- Create a vector rectangle
local rect = display.newRect( 200, 200, 300, 300 )

-- Set the fill (paint) to use the bitmap image
local paint = {
    type = "image",
    filename = "texture1.png"
}

-- Fill the rectangle
rect.fill = paint

-- Rotate the fill
rect.fill.rotation = 45