public class VideoResolution extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
height
The video frame height.
|
int |
width
The video frame width.
|
| Constructor and Description |
|---|
VideoResolution(int width,
int height)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Retrieve the video frame height.
|
int |
getWidth()
Retrieve the video frame width.
|
String |
toString()
Write the dimensions to a
String. |
public int width
public int height
public VideoResolution(int width,
int height)
width - The video width in pixels.height - The video height in pixels.IllegalArgumentException - if width or height is
non-positive.Copyright © 2025. All rights reserved.