Re: Fwd: 'Help' Can you draw a line with fixed line on the round value y e.g. 50.0 ?
Bill Spitzak <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAL-8oAgL-hMCW_g8T6WWuN-676WCLJDMHRL7Zo5GoN12PSNu6w@mail.gmail.com> |
The problem is that the user almost certainly *does* want anti-aliasing, as long as the lines are not horizontal or vertical. Currently the only way to make this work is to make sure your line ends are at the centers of pixels (ie add .5 to any integers). There are vague suggestions that Cairo should do this automatically with some sort of "hinting" mode. A very simple one that would match many other drawing libraries is to have a line width of 0 turn on this mode, but I think that idea was rejected by the Cairo designers. On Sat, Feb 18, 2017 at 1:10 AM, Lawrence D'Oliveiro <[email protected]> wrote: > On Sat, 18 Feb 2017 14:23:01 +0700, Lucky B.C wrote: > >> I couldn't draw lines on round values on y-axis like 50.0. > > If you don’t want anti-aliasing, turn it off. > -- > cairo mailing list > [email protected] > https://lists.cairographics.org/mailman/listinfo/cairo -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo