gEDA-dev: o_invalidate_rect() and extra margin for the line width
Wojciech Kazubski
wk0 at o2.pl
Sun Mar 2 05:01:03 EST 2008
Hello!
Taking the line width into account would be nice when exporting graphics. I
often get EPS images cropped a bit too much. I have to place two very small
pieces of very narrow line (1mil width or so) outside the opposite corners of
the drawing to avoid cropping.
Wojciech Kazubski
> Hi Peter C, and B,
>
> when zoomed way in I have some drawing artefacts in the net mode.
>
> The net mode uses the variables second_x, last_x, start_x to spezify the
> invalidate rectangle:
>
> ---------
> o_invalidate_rect(w_current, w_current->last_x, w_current->last_y,
> w_current->second_x, w_current->second_y);
> ---------
>
> This function call does not take care of the width of the net line.
>
> Possible fixes for the problem:
>
> * the caller calculates the correct rectangle
> This has to be done many times and requires sorted coordinates
> of the rectangle.
>
> * add an extra function parameter to o_invalidate_rect for extra margin
>
> * add some extra margin depending on the current line-width of the
> current graphic contexts inside o_invalidate_rectangle. (w_current->gc
> and w_current->xor_gc)
>
> What are your opinions?
>
> Regards
> Werner
>
>
> _______________________________________________
> geda-dev mailing list
> geda-dev at moria.seul.org
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
More information about the geda-dev
mailing list