The abstract base class of all paint classes. Can be a texture, material, layer or mask.
Get the width of the paint bitmap.
Return type: | int |
---|---|
Returns: | The width of the paint bitmap. |
Get the height of the paint bitmap.
Return type: | int |
---|---|
Returns: | The height of the paint bitmap. |
Get the paint texture if possible.
Return type: | PaintTexture |
---|---|
Returns: | The paint texture if possible, otherwise None. |
Get the parent. This can be a layer or a texture for instance.
Return type: | PaintTexture |
---|---|
Returns: | The paint texture if possible, otherwise None. |
Get the first alpha channel layer.
Return type: | PaintLayer |
---|---|
Returns: | The first alpha channel layer, or None if there is none. |
Get the last child layer.
Return type: | PaintLayer |
---|---|
Returns: | The last child layer, or None if there is none. |
Get the first alpha channel layer.
Return type: | PaintLayer |
---|---|
Returns: | The first alpha channel layer, or None if there is none. |
Get the last alpha channel layer.
Return type: | PaintLayer |
---|---|
Returns: | The last alpha channel layer, or None if there is none. |
Add an alpha channel to the layer.
Parameters: |
|
||||||
---|---|---|---|---|---|---|---|
Return type: | |||||||
Returns: | The added alpha channel, or None if it failed. |
Check if an alpha mask can be applied.
Return type: | bool |
---|---|
Returns: | True if an alpha mask can be applied, otherwise False. |
Refresh an area of the paint bitmap. Must be done after modifying the paint bitmap.
Parameters: |
|
---|
Refresh the complete paint bitmap. Has to be done after modifying the paint bitmap.
Parameters: |
|
---|
Get the color mode of the paint bitmap.
Return type: | int | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The color mode:
|
Get dirty count.
Parameters: | flags (int) – Reserved, must be 0. |
---|---|
Return type: | int |
Returns: | Dirty count, incremented when the paint bitmap changes. |