类型 数码 对象 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