Add API for X and Y ranges, default to 0.0..1.0 and configure the view for 0..255 in the curves tool.