DrawString method implementation

Feb 1, 2015 at 11:14 AM
Hi,

I have implemented effective DrawString extension method into WriteableBitmapEx library. It caches character glyphs in array [X,Y,BW-Color], it can be invoked using code

int DrawString(this WriteableBitmap bmp, int x0, int y0, Color fontColor, Typeface typeface, double emsize, string text)

This code will probably work only in WPF (I don'k know anything about differences in Silverlight and WinPhone).

This code is also on codeplex,
https://fastwpfgrid.codeplex.com/SourceControl/latest#WriteableBitmapEx/LetterGlyphTool.cs
https://fastwpfgrid.codeplex.com/SourceControl/latest#WriteableBitmapEx/LetterGlyph.cs
https://fastwpfgrid.codeplex.com/SourceControl/latest#WriteableBitmapEx/IntGeometry.cs
Coordinator
Feb 2, 2015 at 7:50 AM
Thanks. That's great. :)
Jul 3 at 3:33 AM
Is this going to get integrated into the next release?
Would love to have it as a nuget package