def set_cropping(self, originX, originY, width, height): cropping = c_api.OniCropping(enabled=True, originX=originX, originY=originY, width=width, height=height) self.set_property(c_api.ONI_STREAM_PROPERTY_CROPPING, cropping)
def reset_cropping(self): self.set_property(c_api.ONI_STREAM_PROPERTY_CROPPING, c_api.OniCropping(enabled=False))