Hi, do anyone knows the best way to save text strings in an image space?
I've to print them with a laser plotter and I need them to be the sharpest
possible.
I'd prefer them to be vectorial but I don't know how (and if it is possible)
to do.
I tried to save the string @dotnet.itags.org.2400 dpi but when I open the images with such a
program like photoshop they are simply little and when I try to enlarge them
to fit the printing they lose definition and the image is non sharp.
This is a part of the code...
Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
Dim g As Graphics = Graphics.FromImage(pic)
pic.SetResolution(150,150)
Dim solidBrush As New SolidBrush(Color.Black)
g.Clear(sfondogrigio)
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects
g.DrawString(something, font, color,x,y)
Thnks a lot.
AleAle,
It really depends on the original image size that you're loading. If you're
loading into a large image space the image must by in the proper resolution
to start with to fill this space.
You can resize of course but you will loose definition in that as you're
experiencing. The key is to make sure the oringal images you have or you
create dynamically are sized in the size that you need to start with. GDI+
is pixel based so it doesn't automatically resize and smooth out things
<g>...
+++ Rick --
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
-----------
Making waves on the Web
"Ale" <axxonkava123@.hotmail.com> wrote in message
news:c2cu7l$vn8$1@.nntp.atlavia.it...
> Hi, do anyone knows the best way to save text strings in an image space?
> I've to print them with a laser plotter and I need them to be the sharpest
> possible.
> I'd prefer them to be vectorial but I don't know how (and if it is
possible)
> to do.
> I tried to save the string @.2400 dpi but when I open the images with such
a
> program like photoshop they are simply little and when I try to enlarge
them
> to fit the printing they lose definition and the image is non sharp.
>
> This is a part of the code...
>
> Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
> Dim g As Graphics = Graphics.FromImage(pic)
> pic.SetResolution(150,150)
> Dim solidBrush As New SolidBrush(Color.Black)
> g.Clear(sfondogrigio)
> g.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
> g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects
> g.DrawString(something, font, color,x,y)
>
> Thnks a lot.
> Ale
Does this page produce the sort of results you want?
http://www.lamartin.com/dotnet/TextToImage.aspx
"Ale" <axxonkava123@.hotmail.com> wrote in message
news:c2cu7l$vn8$1@.nntp.atlavia.it...
> Hi, do anyone knows the best way to save text strings in an image space?
> I've to print them with a laser plotter and I need them to be the sharpest
> possible.
> I'd prefer them to be vectorial but I don't know how (and if it is
possible)
> to do.
> I tried to save the string @.2400 dpi but when I open the images with such
a
> program like photoshop they are simply little and when I try to enlarge
them
> to fit the printing they lose definition and the image is non sharp.
>
> This is a part of the code...
>
> Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
> Dim g As Graphics = Graphics.FromImage(pic)
> pic.SetResolution(150,150)
> Dim solidBrush As New SolidBrush(Color.Black)
> g.Clear(sfondogrigio)
> g.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
> g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects
> g.DrawString(something, font, color,x,y)
>
> Thnks a lot.
> Ale
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment