Bitmap (TeaScript)
Jump to navigation
Jump to search
Bitmap is a class in TeaScript.vbs that allows you to read/write values for Bitmaps.
To read the value of Bitmap use:
Bitmap(id).name
id stands for the Bitmap ID. To change the value of Bitmap use:
Bitmap(id).name = value
To learn how to create Bitmaps, click here.
| Type | Name | Read/Write | Description |
|---|---|---|---|
| double | x
|
- | - |
| double | y
|
Read Only | - |
| double | z
|
Write Only | - |
| Name | Type | Description |
|---|---|---|
destx
|
R&W | Stands for the x-position of the bitmap. |
desty
|
R&W | Stands for the y-position of the bitmap. |
scalex
|
R&W | Stands for the x-axis scale of the bitmap. |
scaley
|
R&W | Stands for the y-axis scale of the bitmap. |
rotatang
|
R&W | Stands for the rotation angle of the bitmap in radians. |
hide
|
R&W | Stands for if the bitmap is hidden. |
Zpos
|
R&W | Stands for the Z-position of the bitmap. |
Color
|
R&W | Stands for the color of the bitmap. |
Blendmode
|
R&W | Stands for the blendmode of the bitmap. |
attscreen
|
R&W | Stands for whether the bitmap's coordinates are oriented to the level's coordinate system or if it's oriented to the player's screen
0: Level coordinates 1: Screen coordinates |
scrx
|
R&W | Stands for the x-position of the top-left point in the bitmap source file. |
scry
|
R&W | Stands for the y-position of the top-left point in the bitmap source file. |
scrwidth
|
R&W | Stands for the width of the cropped bitmap. |
scrheight
|
R&W | Stands for the height of the cropped bitmap. |
rotatx
|
R&W | Stands for the x-position of the anchor used with stretching and rotating. |
rotaty
|
R&W | Stands for the y-position of the anchor used with stretching and rotating. |
scrid
|
R&W | Stands for the ID of the NPC used as the bitmap source. |
forecolor_r
|
R&W | The red channel of the Bitmap's forecolor. |
forecolor_g
|
R&W | The green channel of the Bitmap's forecolor. |
forecolor_b
|
R&W | The blue channel of the Bitmap's forecolor. |
forecolor_a
|
R&W | The alpha/transparency channel of the Bitmap's forecolor. |