Package org.silverpeas.components.gallery.model

## Interface VisualMedia

- All Known Implementing Classes:
    `Photo`, `Video`

      public interface VisualMedia

  A Visual media. Such media has a definition (or resolution) expressed in pixels.
  Author:
    mmoquillon

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `org.silverpeas.core.io.media.Definition` | `getDefinition()` | Gets the definition in pixels of the media.
    `void` | `setDefinition​(org.silverpeas.core.io.media.Definition definition)` | Sets the definition in pixels of the media.

- - ### Method Detail

    - #### getDefinition

          org.silverpeas.core.io.media.Definition getDefinition()

      Gets the definition in pixels of the media.
      Returns:
        the definition of the media.

    - #### setDefinition

          void setDefinition​(org.silverpeas.core.io.media.Definition definition)

      Sets the definition in pixels of the media.
      Parameters:
        `definition` - the definition in pixels of the media.