Class Rectangle
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Rectangle
Describes the properties of a rectangular window applied to the input media before processing it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionheight()
Get the height property: The height of the rectangular region in pixels.left()
Get the left property: The number of pixels from the left-margin.top()
Get the top property: The number of pixels from the top-margin.void
validate()
Validates the instance.width()
Get the width property: The width of the rectangular region in pixels.withHeight
(String height) Set the height property: The height of the rectangular region in pixels.Set the left property: The number of pixels from the left-margin.Set the top property: The number of pixels from the top-margin.Set the width property: The width of the rectangular region in pixels.
-
Constructor Details
-
Rectangle
public Rectangle()Creates an instance of Rectangle class.
-
-
Method Details
-
left
Get the left property: The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Returns:
- the left value.
-
withLeft
Set the left property: The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Parameters:
left
- the left value to set.- Returns:
- the Rectangle object itself.
-
top
Get the top property: The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Returns:
- the top value.
-
withTop
Set the top property: The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Parameters:
top
- the top value to set.- Returns:
- the Rectangle object itself.
-
width
Get the width property: The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Returns:
- the width value.
-
withWidth
Set the width property: The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Parameters:
width
- the width value to set.- Returns:
- the Rectangle object itself.
-
height
Get the height property: The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Returns:
- the height value.
-
withHeight
Set the height property: The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).- Parameters:
height
- the height value to set.- Returns:
- the Rectangle object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-