473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Low Quality text in System.Drawing

Hi,

I'm working in a image generator, using C# with ASP.NET 2.0.

I'm generate some imagens in disk , in my machine everything works ,
but when i put the application in a server prodution , the text don't
have the same highquality.

Can occur some difference in System.Drawing.DrawString() ?

Eugênio Spolti

Sorry! but my english is very bad.

Jun 20 '07 #1
1 1849
Hi Eugenio,

Don't worry, your english is fine ;-). Set TextRenderingHint property:

graphics.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.AntiAliasGri dFit;

before you call DrawString()

Hope this helps
--
Milosz
"Eugenio" wrote:
Hi,

I'm working in a image generator, using C# with ASP.NET 2.0.

I'm generate some imagens in disk , in my machine everything works ,
but when i put the application in a server prodution , the text don't
have the same highquality.

Can occur some difference in System.Drawing.DrawString() ?

Eugênio Spolti

Sorry! but my english is very bad.

Jun 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: someone | last post by:
Please bear with me, since I'm an ASP guy, and not a .NET guy. On my site, I dynamically resize/resample images so they're not too large. GetThumbnail resulted in very poor quality, so I create a...
2
by: Cecil Windham | last post by:
I'm using the following code to rotate an image (jpeg or gif), and have discovered that there is a significant degradation in the quality of the photo. Just wondering if there is a way to...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
6
by: Chris D | last post by:
Hi, I have an application where a user uploads an image and I create two thumbnails. One a small image and the second is a larger image but still smaller then the original. I store these in SQL...
4
by: Ersin Gençtürk | last post by:
Hi , I am creating dynamic images (for example writing text into a bitmap) and saving it to the output stream with gdi library in .net but I can't adjust image quality. The best parameters...
2
by: IkBenHet | last post by:
Hello, I want to make thumbnails from images. I found this code and modified it and it works fine: <%@Import Namespace="System.Drawing.Imaging" %> <script language="VB" runat="server">...
4
by: Liming | last post by:
Hi, I've managed to create a bitmap and output it via the httphandler by setting Response.ContentType="image/gif" the resulting GIF quality is REALLY bad. I searched around the web, the only...
8
by: JJ | last post by:
Whilst I am resizing images I am losing quality. This is only happening in small amounts, but if you repeatedly put the same image through the following code, the image quality slowly degrades. Can...
1
by: Sinan Alkan | last post by:
Hi All, I have a method to resize any image file to the specific dimensions and save this new image to a path. I found it on a web page(By Joel Neubeck) and i changed it for my project. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.