c4d.modules.bodypaint.PaintBitmap
¶
The abstract base class of all paint classes. Can be a texture, material, layer or mask.
c4d.modules.bodypaint.
PaintBitmap
¶
c4d.BaseList2D
PaintBitmap.
GetBw
(
)
¶
Get the width of the paint bitmap.
Return type: | int |
---|---|
Returns: | The width of the paint bitmap. |
PaintBitmap.
GetBh
(
)
¶
Get the height of the paint bitmap.
Return type: | int |
---|---|
Returns: | The height of the paint bitmap. |
PaintBitmap.
GetPaintTexture
(
)
¶
Get the paint texture if possible.
Return type: | c4d.modules.bodypaint.PaintTexture |
---|---|
Returns: | The paint texture if possible, otherwise None . |
PaintBitmap.
GetParent
(
)
¶
Get the parent. This can be a layer or a texture for instance.
Return type: | c4d.modules.bodypaint.PaintBitmap |
---|---|
Returns: | The paint texture if possible, otherwise None . |
PaintBitmap.
GetLayerDownFirst
(
)
¶
Get the first alpha channel layer.
Return type: | c4d.modules.bodypaint.PaintLayer |
---|---|
Returns: | The first alpha channel layer, or None if there is none. |
PaintBitmap.
GetLayerDownLast
(
)
¶
Get the last child layer.
Return type: | c4d.modules.bodypaint.PaintLayer |
---|---|
Returns: | The last child layer, or None if there is none. |
PaintBitmap.
GetAlphaFirst
(
)
¶
Get the first alpha channel layer.
Return type: | c4d.modules.bodypaint.PaintLayer |
---|---|
Returns: | The first alpha channel layer, or None if there is none. |
PaintBitmap.
GetAlphaLast
(
)
¶
Get the last alpha channel layer.
Return type: | c4d.modules.bodypaint.PaintLayer |
---|---|
Returns: | The last alpha channel layer, or None if there is none. |
PaintBitmap.
AddAlphaChannel
(
bitdepth[, prev=None][, undo=True][, activate=True]
)
¶
Add an alpha channel to the layer.
Parameters: |
|
||||||
---|---|---|---|---|---|---|---|
Return type: | |||||||
Returns: |
The added alpha channel, or None if it failed. |
PaintBitmap.
AskApplyAlphaMask
(
)
¶
Check if an alpha mask can be applied.
Return type: | bool |
---|---|
Returns: | True if an alpha mask can be applied, otherwise False . |
PaintBitmap.
UpdateRefresh
(
xmin
,
ymin
,
xmax
,
ymax
,
flags
)
¶
Refresh an area of the paint bitmap. Must be done after modifying the paint bitmap.
Parameters: |
|
---|
PaintBitmap.
UpdateRefreshAll
(
flags
,
reallyall
)
¶
Refresh the complete paint bitmap. Has to be done after modifying the paint bitmap.
Parameters: |
|
---|
PaintBitmap.
GetColorMode
(
)
¶
Get the color mode of the paint bitmap.
Return type: | int | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
The color mode:
|
PaintBitmap.
GetDirty
(
flags
)
¶
Get dirty count.
Parameters: | flags ( int ) – Reserved, must be 0. |
---|---|
Return type: | int |
Returns: | Dirty count, incremented when the paint bitmap changes. |