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.
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
