Table of Contents

Bitmap.new

Available since version: Gideros 2011.6

Description:

Creates a new Bitmap object.

Syntax:

Bitmap.new(texture)

Parameters:

  • texture: (TextureBase or TextureRegion)

Examples:

local texture = Texture.new("image.png")

local region = TextureRegion.new(texture, 0, 0, 100, 50)

local bitmap1 = Bitmap.new(texture)
local bitmap2 = Bitmap.new(region)

stage:addChild(bitmap1)
stage:addChild(bitmap2)