I don't think you should have variable width.  The only width that is easy to 
do is when it's exactly equal to the number of bins you requested for the 
histogram.  Support that only, is fine with me.

        -- lg


On Jul 3, 2012, at 8:21 PM, Stefan Stavrev wrote:

> I like the "height set by user" part, can be done easily. Will need to 
> specify min and max height though, for example 100 to 512. In Photoshop the 
> histogram has fixed height 100, smaller heights make no sense, since we want 
> the thing to be visible.
> 
> But not sure about having variable width. Since I already coded a solution 
> for fixed size window, I will send it tomorrow and we can make a comparison 
> of the two options:
> 
> 1. Fixed window, which implies number of bins needs to be modified. In the 
> solution I got now, I "snap" the number of bins to certain values for easier 
> drawing. For example if number of bins is 130 I snap to 128 since it is 
> easier like that to draw in fixed size window with width 256.
> 
> 2. Variable width window which tries to fit the number of bins.
> 

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to