Rank: Member
Groups: Guest
Joined: 11/4/2006(UTC) Posts: 1
|
I am developing a .Net application that absolutely must be able to render Raster Fonts (.FON) to a bitmp. This is an application for running small electronic pixel displays. I need to be able to render fonts as small as 6 pt, and Raster fonts are the only way to be able to do this well. Obviously, .Net doesn't support them. But does the Graphics Mill? I would purchase it in a heartbeat if it could solve my problem. If the .Net Graphics Mill does not, then does the ActiveX version - and couldn't I just use it through com interop? Thanks for any suggestions, Glenn
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 1/31/2005(UTC) Posts: 458
Was thanked: 5 time(s) in 5 post(s)
|
Good day, Glenn, Yes, GraphicsMill for .NET supports rendering of raster fonts via GdiGraphics class. But raster nature of such fonts imposes some restrictions to the functionality. You could download trial version of our product and test it regarding to your requirements. Here small example of GdiGraphics usage: Code:Aurigma.GraphicsMill.Bitmap image = new Aurigma.GraphicsMill.Bitmap(Aurigma.GraphicsMill.RgbColor.White, 300, 200, Aurigma.GraphicsMill.PixelFormat.Format24bppRgb);
Aurigma.GraphicsMill.Drawing.GdiGraphics g = null;
Aurigma.GraphicsMill.Drawing.Font font = null;
try
{
g = image.GetGdiGraphics();
font = new Aurigma.GraphicsMill.Drawing.Font("Small Fonts", 6);
string text = "Raster font test";
g.DrawString(text, font, new Aurigma.GraphicsMill.Drawing.SolidBrush(), new System.Drawing.Point(50, 50));
System.Drawing.SizeF textSize = font.MeasureText("RasterFontTest");
g.DrawRectangle(new Aurigma.GraphicsMill.Drawing.Pen(), 50, 50, textSize.Width, textSize.Height);
}
finally
{
if (g != null)
g.Dispose();
if (font != null)
font.Dispose();
}
image.Save("y:/1.png");
Edited by user Tuesday, December 18, 2007 8:22:25 PM(UTC)
| Reason: Not specified |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.