java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
com.azure.resourcemanager.mediaservices.models.PngLayer

public final class PngLayer extends Layer
Describes the settings to produce a PNG image from the input video.
  • Constructor Details

    • PngLayer

      public PngLayer()
      Creates an instance of PngLayer class.
  • Method Details

    • withWidth

      public PngLayer withWidth(String width)
      Set the width property: The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
      Overrides:
      withWidth in class Layer
      Parameters:
      width - the width value to set.
      Returns:
      the Layer object itself.
    • withHeight

      public PngLayer withHeight(String height)
      Set the height property: The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
      Overrides:
      withHeight in class Layer
      Parameters:
      height - the height value to set.
      Returns:
      the Layer object itself.
    • withLabel

      public PngLayer withLabel(String label)
      Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
      Overrides:
      withLabel in class Layer
      Parameters:
      label - the label value to set.
      Returns:
      the Layer object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Layer
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.