humble-video-noarch/src/main/java/io/humble/video/awt/MediaPictureConverterFactory.java
public static MediaPictureConverter createConverter(
      BufferedImage image,
      MediaPicture picture)
  {

    if (image == null)
      throw new IllegalArgumentException("cannot pass null image");
    if (picture == null)
      throw new IllegalArgumentException("cannot pass null picture");
    return createConverter(image, picture.getFormat());
  }
public static MediaPictureConverter createConverter(
      BufferedImage image,
      MediaPicture picture)
  {

    if (image == null)
      throw new IllegalArgumentException("cannot pass null image");
    if (picture == null)
      throw new IllegalArgumentException("cannot pass null picture");
    return createConverter(image, picture.getFormat());
  }
public static MediaPictureConverter createConverter ( BufferedImage image , MediaPicture picture ) { if ( image == null ) throw new IllegalArgumentException ( "cannot pass null image" ) ; if ( picture == null ) throw new IllegalArgumentException ( "cannot pass null picture" ) ; return createConverter ( image , picture . getFormat ( ) ) ; }
Create a converter which translates between {@link BufferedImage}
and {@link MediaPicture}.  This factory will attempt to
create a converter which can perform the translation.  If no
converter can be created, a descriptive {@link
UnsupportedOperationException} is thrown.

@param image a prototypical {@link BufferedImage} that is in the format you want to convert to/from.
@param picture a prototypical {@link MediaPicture} in the format you want to convert to/from.

@throws UnsupportedOperationException if the converter can not be
found
@throws UnsupportedOperationException if the found converter can
not be properly initialized
Create a converter which translates between { @link BufferedImage } and { @link MediaPicture } . This factory will attempt to create a converter which can perform the translation . If no converter can be created a descriptive { @link UnsupportedOperationException } is thrown .