commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject [imaging] Parser and writer parameters
Date Fri, 29 Nov 2013 13:19:47 GMT
Hi all,

Imaging uses a Map<String, Objet> to pass parameters to the writers and
parsers. This isn't very convenient, because it's not immediately
obvious what parameters are available and what values are expected.

In constrast, javax.imageio has a hierarchy of parameter classes
(IIOParam, ImageReadParam, ImageWriteParam, JPEGImageReadParam, etc) and
I think it's a good idea.

The Map<String, Objet> could be replaced by an ImagingParams class, and
each format would subclass it as needed. I don't know if it's worth
splitting the class to separate the read and write parameters.

What do you think?

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message