from_argb method
Leave feedback
On this page
Builds a color from a packed 32-bit value in ARGB order.
def from_argb(cls, argb):
...
| Parameter | Type | Description |
|---|---|---|
| argb | int |
Packed alpha, red, green, and blue values. |
Returns: Color: A color that can be assigned to redaction options.
Builds a color from separate channel values.
def from_argb(cls, alpha, red, green, blue):
...
| Parameter | Type | Description |
|---|---|---|
| alpha | int |
Opacity from 0 to 255. |
| red | int |
Red channel from 0 to 255. |
| green | int |
Green channel from 0 to 255. |
| blue | int |
Blue channel from 0 to 255. |
Returns: Color: A color that can be assigned to redaction options.
from groupdocs.redaction.options.drawing import Color
# Create a semi‑transparent red color
color = Color.from_argb(128, 255, 0, 0)
These names call from_argb too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
from_argb_int32 |
from_argb_int32(alpha, red, green, blue)from_argb_int32(argb) |
- class
Color
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.