The Height
property of the VideoWriter
class specifies the height of the video frame in pixels. This property is used to define the vertical resolution of the video being created.
The Height
property of the VideoWriter
class specifies the height of the video frame in pixels. This property is used to define the vertical resolution of the video being created.
To set the height of the video frame, assign an integer value representing the number of pixels to the Height
property. Ensure that the value is positive and corresponds to the desired video resolution.
// Create a new VideoWriter instance VideoWriter videoWriter = new VideoWriter(); // Set the height of the video frame to 720 pixels videoWriter.Height = 720; // Use the VideoWriter to add frames and finalize the video // ...