center_rect


Description:


[ Version ( since = "1.20" ) ]
public void center_rect (Rectangle src, Rectangle dst, out Rectangle result, bool scaling)

Takes src rectangle and position it at the center of dst rectangle with or without scaling.

It handles clipping if the src rectangle is bigger than the dst one and scaling is set to FALSE.

Parameters:

src

a pointer to Rectangle describing the source area

dst

a pointer to Rectangle describing the destination area

result

a pointer to a Rectangle which will receive the result area

scaling

a bool indicating if scaling should be applied or not


Namespace: Gst.Video