[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [imaging] Parser and writer parameters
From:       Emmanuel Bourg <ebourg () apache ! org>
Date:       2013-11-29 13:19:47
Message-ID: 52989473.8000603 () apache ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic