public final class IIOImageProviderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static ImageReader |
getImageReaderByMediaType(MediaType mediaType)
FIXME Comment this
|
static ImageWriter |
getImageWriterByMediaType(MediaType mediaType)
FIXME Comment this
|
static IIOImage |
readImage(InputStream in,
ImageReader reader,
int imageIndex)
FIXME Comment this
|
static void |
writeImage(Annotation[] annotations,
MediaType mediaType,
ImageWriter writer,
OutputStream out,
IIOImage image)
FIXME Comment this
|
public static ImageWriter getImageWriterByMediaType(MediaType mediaType)
mediaType
- media typepublic static IIOImage readImage(InputStream in, ImageReader reader, int imageIndex) throws IOException
in
- input streamreader
- image readerimageIndex
- indexIIOImage
IOException
- if I/O error occurredpublic static ImageReader getImageReaderByMediaType(MediaType mediaType)
mediaType
- media typepublic static void writeImage(Annotation[] annotations, MediaType mediaType, ImageWriter writer, OutputStream out, IIOImage image) throws IOException
annotations
- array of annotationsmediaType
- media typewriter
- image writerout
- output streamimage
- IIOImage
IOException
- if I/O error occurredCopyright © 2019 JBoss by Red Hat. All rights reserved.