set_render_rectangle


Description:

public void set_render_rectangle (int render_x, int render_y, uint render_width, uint render_height)

Sets the render position and dimensions of the rectangle on the video.

This function is mainly for elements that modify the size of the video in some way (e.g. through scaling or cropping) and need to adjust the details of any overlays to match the operation that changed the size.

this must be writable, meaning its refcount must be 1. You can make the rectangles inside a OverlayComposition writable using make_writable or copy.

Parameters:

this

a OverlayRectangle

render_x

render X position of rectangle on video

render_y

render Y position of rectangle on video

render_width

render width of rectangle

render_height

render height of rectangle