c4d.modules.bodypaint.PaintLayerBmp
¶
The abstract base class of all paint classes. Can be a texture, material, layer or mask.
c4d.modules.bodypaint.
PaintLayerBmp
¶
c4d.modules.bodypaint.PaintLayer
PaintLayerBmp.
ImportFromBaseBitmap
(
bmp
,
usealpha
)
¶
Fill the layer bitmap with an imported bitmap.
| Parameters: |
|
|---|---|
| Return type: |
bool |
| Returns: |
True if successful, otherwise False . |
PaintLayerBmp.
ImportFromBaseBitmapAlpha
(
bmp
,
channel
)
¶
Fill the layer bitmap with an imported bitmap.
| Parameters: |
|
|---|---|
| Return type: |
bool |
| Returns: |
True if successful, otherwise False . |
PaintLayerBmp.
GetBoundingBox
(
)
¶
Get the bounding box of the bitmap layer:
d = layer_bmp.GetBoundingBox() d["x1"], d["y1"], d["y1"], d["y2"]
| Return type: | dict |
|---|---|
| Returns: | The coordinates |
PaintLayerBmp.
GetPixelCnt
(
x
,
y
,
cnt
,
buffer
,
dstmode
,
flags
)
¶
New in version R16.021.
Reads cnt pixels from ( x , y ) in the bitmap to the buffer with mode dstmode .
| Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: |
bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns: |
True if successful, otherwise False . |
PaintLayerBmp.
SetPixelCnt
(
x
,
y
,
cnt
,
buffer
,
inc
,
srcmode
,
flags
)
¶
New in version R16.021.
Sets cnt pixels at ( x , y ) in the bitmap from buffer with mode srcmode , incrementing inc bytes for each pixel.
| Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: |
bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns: |
True if successful, otherwise False . |