Jacek Rudnicki(deleted)
02/15/2013 2:58 PM
post99320
|
On my hardware (devg-i830.so) dashed line can't be drawn if width of line is set to 1.
If width of line is bigger than 1 then everything works ok.
Also looks like that my hardware handles line_repeat qual to 32 only.
Is this limitation common to all devices supported via the same driver in this case devg-i830.so ?
> gf_point_t p[] = { { 50,250},{w-100,250}};
> gf_context_set_fgcolor(context,0x00ffff);
> gf_context_set_bgcolor(context,0xffffff);
> gf_context_set_linedash(context,0x000ffff, 0, 32,
> GF_CONTEXT_LINEDASH_BACKFILL);
> gf_context_set_penwidth( context,10);
> gf_draw_polyline(context,p,2,0);
>
> -----Original Message-----
> From: Jacek Rudnicki [mailto:community-noreply@qnx.com]
> Sent: February-14-13 2:55 PM
> To: advanced-graphics
> Subject: Re: Line dashing
>
> I need to draw dotted and dashed line.
>
> Can anybody explain how to use the gf_context_set_linedash() for such purpose
> ?
> Is it possible to draw a dashed line on the patchy background ?
>
> > Hi,
> >
> > Example from documentation "Setting line attributes" draws a solid
> > line, even if I play with function parameters.
> >
> > What is a proper usage of the gf_context_set_linedash() function ?
> >
> > Thank's,
> > Jacek
>
>
>
>
>
>
> _______________________________________________
>
> Advanced Graphics
> http://community.qnx.com/sf/go/post99297
> To cancel your subscription to this discussion, please e-mail advanced-
> graphics-unsubscribe@community.qnx.com
|
|
|