Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.WatermarkOptions.Rectangle Class Reference

Defines the position and size of the watermark image. More...

Public Member Functions

 Rectangle (int x_, int y_, int width_, int height_)
 

Public Attributes

int x = 0
 
int y = 0
 
int width = 0
 
int height = 0
 

Detailed Description

Defines the position and size of the watermark image.

Since
4.6.0

This class is used to specify the rectangular area where the watermark will be displayed.

Member Data Documentation

◆ x

int io.agora.rtc2.video.WatermarkOptions.Rectangle.x = 0

The horizontal position of the watermark's top-left corner, in pixels.

◆ y

int io.agora.rtc2.video.WatermarkOptions.Rectangle.y = 0

The vertical position of the watermark's top-left corner, in pixels.

◆ width

int io.agora.rtc2.video.WatermarkOptions.Rectangle.width = 0

The width of the watermark image, in pixels.

◆ height

int io.agora.rtc2.video.WatermarkOptions.Rectangle.height = 0

The height of the watermark image, in pixels.