Class: Bitmap

Bitmap

画像データを管理するクラス、Next2DのShapeクラスとして出力されます。
The output is as a Next2D Shape class, a class that manages image data.

new instance.Bitmap (object)

NameTypeDescription
objectobject

Extends

  • Instance

Members

buffer Uint8Array | string

画像のカラー配列のバイナリデータ
Binary data of the color array of the image

Default Value:
  • ""

defaultSymbol readonly

シンボルを指定した時の継承先を返す
Returns the inheritance destination when a symbol is specified.

height

画像の高さを返す
Returns the height of the image

imageType string

画像種別を返す(image/png, image/jpeg, image/gif, etc...)
return image type (image/png, image/jpeg, image/gif, etc...)

width number

画像の幅を返す
Return image width

Methods

clone ()Bitmap

Bitmapクラスを複製
Duplicate Bitmap class

Returns:
TypeDescription
Bitmap

createInstance ()next2d.display.Shape

Next2DのShapeを生成
Generate Next2D Shape

Returns:
TypeDescription
next2d.display.Shape

getBounds (matrix)object

表示領域(バウンディングボックス)のObjectを返す
Returns the Object of the display area (bounding box)

NameTypeDefaultDescription
matrixarraynulloptional
Returns:
TypeDescription
object

showController (place, name)void

このアイテムが設定されたDisplayObjectが選択された時
内部情報をコントローラーに表示する
When a DisplayObject with this item set is selected,
internal information is displayed on the controller.

NameTypeDefaultDescription
placeobject
namestring""optional
Returns:
TypeDescription
void

toObject ()object

クラス内の変数をObjectにして返す
Return variables in a class as Objects

Returns:
TypeDescription
object

toPublish ()object

書き出し用のObjectを返す
Returns an Object for export

Returns:
TypeDescription
object