Select to view content in your preferred language

GDI+ Smooth Edge Draw Issue

3825
10
07-11-2010 09:37 AM
by Anonymous User
Not applicable
Original User: dberry911

I am using VS2005 VB.NET with ArcObjects V9.3.1.

I am using GDI+ to DrawImage, DrawString, DrawEllipse as part of an AVL Tracking Layer(non-dynamic map).

Resulting images, text, and ellipsis are not drawn smooth, they appear as having rough edges.

Using the same code in a test application results in all images & text with smooth edges.

The GDI+ MeasureString method calculates inaccurate values, but in the test application calculations are correct.

When DrawText is used with a background the text has smooth edges, but if drawn directly on the MapControl the text has rough edges.

I am setting the SmoothingMode of the graphics to Antialias and have tried every other combination without success.

Attached are examples of rough & smooth edges of an ellipse.



Anyone else see this same issue?

Suggestions & insights appreciated.

Regards,
Dennis
0 Kudos
10 Replies
DennisBerry
Emerging Contributor
Kirk,

I had tried once before commenting-out the start/finish draw to no affect.

This logic is all pretty simple and it's my feeling that there is some type of underlying issue, but what that is I have no idea.

Does anyone from ESRI have any suggestions to offer?

And again it doesn't matter where I do the draw it all results in rough edges.

Regards,
Dennis
0 Kudos