public static MediaPictureConverter createConverter(
    String converterDescriptor,
    MediaPicture picture) {
    """
	Create a converter which translates betewen {@link BufferedImage}
	and {@link MediaPicture} types.  The {@link
	io.humble.video.PixelFormat.Type} and size are extracted from
	the passed in picture.  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 converterDescriptor the unique string descriptor of the
	converter which is to be created
	@param picture the picture from which size and type are extracted
	
	@throws UnsupportedOperationException if the converter can not be
	found
	@throws UnsupportedOperationException if the found converter can
	not be properly initialized
	@throws IllegalArgumentException if the passed {@link
	MediaPicture} is NULL;
    """
    if (picture == null)
      throw new IllegalArgumentException("The picture is NULL.");

    return createConverter(converterDescriptor, picture.getFormat(), 
      picture.getWidth(), picture.getHeight());
  }
public static MediaPictureConverter createConverter(
    String converterDescriptor,
    MediaPicture picture)
  {
    if (picture == null)
      throw new IllegalArgumentException("The picture is NULL.");

    return createConverter(converterDescriptor, picture.getFormat(), 
      picture.getWidth(), picture.getHeight());
  }
public static MediaPictureConverter createConverter ( String converterDescriptor , MediaPicture picture ) { if ( picture == null ) throw new IllegalArgumentException ( "The picture is NULL." ) ; return createConverter ( converterDescriptor , picture . getFormat ( ) , picture . getWidth ( ) , picture . getHeight ( ) ) ; }
Create a converter which translates betewen {@link BufferedImage}
and {@link MediaPicture} types.  The {@link
io.humble.video.PixelFormat.Type} and size are extracted from
the passed in picture.  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 converterDescriptor the unique string descriptor of the
converter which is to be created
@param picture the picture from which size and type are extracted

@throws UnsupportedOperationException if the converter can not be
found
@throws UnsupportedOperationException if the found converter can
not be properly initialized
@throws IllegalArgumentException if the passed {@link
MediaPicture} is NULL;
Create a converter which translates betewen { @link BufferedImage } and { @link MediaPicture } types . The { @link io . humble . video . PixelFormat . Type } and size are extracted from the passed in picture . 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 .