[Suggestion] Change "Line+AntiAlias=0.5px offset" rule
Posted: August 30th, 2018, 5:19 am
Line with antialiasing turned on has half pixel offset to left, and half pixel offset to top.
And while I see that it should be kept for backward compatibility I really don't like it.
Here is some of the issues that I have because of this:
1) If value of a measure is 0 then line looks dim.
2) When used with Flip=1 real height of the line is bigger than it's H value.
3) Values of Meter=Line and Meter=Histogram differ in the same pixel
4) If I want to hide values of the line that show zero then I need to use something with a 2 pixel height. Which is really inconvenient because a line with one pixel width looks thin, and a line with 2 pixel width does not.
I saw a post from Brian that states that by default D2D draws line using centers of the pixels — just as I want Line meter to behave.
I think that there can be new option for Line, something like "DisableHalfOffset", that makes a meter draw itself, well, without a half pixel offset.
It would be lovely to see this work with hardware acceleration turned off but even if it won't—it will be good to finally have a well drawn Line meter at least with hardware acceleration. Or a meter with this option can be always drawn using D2D.
And while I see that it should be kept for backward compatibility I really don't like it.
Here is some of the issues that I have because of this:
1) If value of a measure is 0 then line looks dim.
I want to have a line of bright, full lit green. I get it without anlialiasing. But with it — the line has a dirty dim color, and there is no way to make it bright.
Grey color shows the bounds of the meter, and the line goes above it's bounds.
I want to make a plot that is drawn using histogram as a filler and a line as a stroke.
I saw a post from Brian that states that by default D2D draws line using centers of the pixels — just as I want Line meter to behave.
I think that there can be new option for Line, something like "DisableHalfOffset", that makes a meter draw itself, well, without a half pixel offset.
It would be lovely to see this work with hardware acceleration turned off but even if it won't—it will be good to finally have a well drawn Line meter at least with hardware acceleration. Or a meter with this option can be always drawn using D2D.