Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: DrawString method implementation

$
0
0
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

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>