|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Bug in conv_stroke with line capHi all,
I'm facing a very strange problem with the conv_stroke converter while setting the line cap to round_cap. Here is the situation: I'm trying to draw a polyline of a certain width which is completly offscreen so when the clipping occures, nothin must be drawn because the polyline is entirely located off the screen. The polyline is defined as follow: ps.move_to(-530,-1212); ps.line_to(-526,-1217); ps.line_to(-519, -1224); ps.line_to(-510, -1230); ps.line_to(-500, -1234); ps.line_to(-353, -1292); Then the following pipepline is used to render this polyline: agg::conv_stroke<agg::path_storage> pg(ps); agg::conv_transform<agg::conv_stroke<agg::path_storage>, agg::trans_perspective> trans(pg,matrix); pg.width(5.0); pg.line_cap(agg::round_cap); Then the overall is rasterized using renderer_scanline_aa_solid. The perspective matrix has a translation and rotation on the x and z axis but I don't think it is the problem. I attached the image I get with the above command. The white strip is the line which is drawn and the black color is the background. In theory everything should be black but because of some problem it's not. Then if I remove the pg.line_cap() line (so there is no rounded cap anymore), then everything works fine (i.e. nothing is displayed). Does anybody know why or have some pointers about that? Thanks a lot! Best regards, Mathieu Monney ![]() ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
|
|
Re: Bug in conv_stroke with line capMathieu Monney wrote:
> I'm facing a very strange problem with the conv_stroke converter while > setting the line cap to round_cap. > > Here is the situation: [...] I don't think you gave enough information to reproduce the problem. If you post the exact steps required then somebody may be able to help. - Jim ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
| Free embeddable forum powered by Nabble | Forum Help |