from_argb method

from_argb

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.

from_argb

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.

Example

from groupdocs.redaction.options.drawing import Color

# Create a semi‑transparent red color
color = Color.from_argb(128, 255, 0, 0)

Aliases

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)

See Also