from_other_with_alpha method

from_other_with_alpha

Creates a new Argb32Color instance from specified, but with re-defined alpha (opacity) value

Returns

New Argb32Color instance

def from_other_with_alpha(self, other, new_alpha):
    ...
Parameter Type Description
other groupdocs.viewer.drawing.Argb32Color Other Argb32Color instance, from which the new one will be created
new_alpha int Re-defined alpha channel value (255 - fully opaque, 0 - fully transparent)

from_other_with_alpha

Creates a new Argb32Color instance from specified Rgb24Color, but with specified alpha (opacity) value

Returns

New Argb32Color instance

def from_other_with_alpha(self, other, new_alpha):
    ...
Parameter Type Description
other groupdocs.viewer.drawing.Rgb24Color Other Rgb24Color instance, from which the new one will be created
new_alpha int Alpha channel value (255 - fully opaque, 0 - fully transparent)

See Also