I need help with string drawing into a Canvas. If I draw the string directly into the canvas during the Paint event, no problem.

However, if I first render the string into a Picture using picture.graphics.drawString(), and then overlay the picture onto the Canvas during the Paint event using g.drawPicture() , the text is displayed with unsightly near-white pixels around each character. have tried to eliminate these using a mask, but to date no success. I have tried smoothing/blur routines and different transparency tricks, but to no avail.


An sample application and the (simple) source code is posted at URL:

http://www.shrinkwrapfever.com/downloads/swf/test/testHaloEffect.zip

My goal is to create different Pictures containing various elements, (images, text) and then render the appropriate picture onto the Canvas at the place and time it is needed. However, if I create the Picture first, these unwanted halos appear when I draw the Picture onto the Canvas.

Any suggestions?

Mark Levinson, MD
Hutchinson, KS
Email: [EMAIL PROTECTED]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to