VideoOverlayRectangle.setGlobalAlpha

Sets the global alpha value associated with a #GstVideoOverlayRectangle. Per- pixel alpha values are multiplied with this value. Valid values: 0 <= global_alpha <= 1; 1 to deactivate.

rectangle must be writable, meaning its refcount must be 1. You can make the rectangles inside a #GstVideoOverlayComposition writable using gstvideo.video_overlay_composition.VideoOverlayComposition.makeWritable or gstvideo.video_overlay_composition.VideoOverlayComposition.copy.

class VideoOverlayRectangle
void
setGlobalAlpha
()

Parameters

globalAlpha float

Global alpha value (0 to 1.0)