MediaImageΒΆ

public RenderAPIsAPIv1MediaItem MediaItem getMediaItem ()
Returns:RenderAPIsAPIv1MediaItem MediaItem
public string getMediaId ()
Returns:string
public int getWidth ()

Returns the width of the image

Returns:int
public int getHeight ()

Returns the height of the image

Returns:int
public string getUrl ()
Returns:string
public resizeScale (maxWidth = NULL, maxHeight = NULL)
Parameters:
  • $maxWidth
  • $maxHeight
public resizeStretch (width, height)
Parameters:
  • $width
  • $height
public resizeCenter (width, height)
Parameters:
  • $width
  • $height
public resizeBorder (width, height)
Parameters:
  • $width
  • $height
public RenderAPIsAPIv1$this $this crop (int top, int left, int width, int height)

Crops the Image object.

Parameters:
  • $top (int) –
  • $left (int) –
  • $width (int) –
  • $height (int) –
Returns:

RenderAPIsAPIv1$this $this

public RenderAPIsAPIv1$this $this setQuality (int quality)

Sets the image quality (if supported by the mime type)

Parameters:
  • $quality (int) –
Returns:

RenderAPIsAPIv1$this $this

public RenderAPIsAPIv1$this $this setInterlaced (bool|null interlaced)

Sets the interlacing mode

Parameters:
  • $interlaced (bool|null) –
Returns:

RenderAPIsAPIv1$this $this