ass_set_margins method

void ass_set_margins(
  1. Pointer<ASS_Renderer> priv,
  2. int t,
  3. int b,
  4. int l,
  5. int r,
)

\brief Set frame margins. These values may be negative if pan-and-scan is used. The margins are in pixels. Each value specifies the distance from the video rectangle to the renderer frame. If a given margin value is positive, there will be free space between renderer frame and video area. If a given margin value is negative, the frame is inside the video, i.e. the video has been cropped.

The renderer will try to keep subtitles inside the frame area. If possible, text is layout so that it is inside the cropped area. Subtitle events that can't be moved are cropped against the frame area.

ass_set_use_margins() can be used to allow libass to render subtitles into the empty areas if margins are positive, i.e. the video area is smaller than the frame. (Traditionally, this has been used to show subtitles in the bottom "black bar" between video bottom screen border when playing 16:9 video on a 4:3 screen.)

\param priv renderer handle \param t top margin \param b bottom margin \param l left margin \param r right margin

Implementation

void ass_set_margins(
  ffi.Pointer<ASS_Renderer> priv,
  int t,
  int b,
  int l,
  int r,
) {
  return _ass_set_margins(
    priv,
    t,
    b,
    l,
    r,
  );
}