Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / February 2007

Tip: Looking for answers? Try searching our database.

Bitmap Class Rendering Inconsistently

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Corey Ellsworth - 22 Feb 2007 22:06 GMT
I have coded a class that uses the bitmap class to generate graphics from
True Type fonts.  I'm using it primarily to render 3 of 9 barcodes from a
True Type font.  When the exact same code is used to generate a barcode from
some Web servers the barcodes print nice and clean.  From other Web servers
the barcodes print out very blurry.  As a result, the blurry barcodes will
not scan.

We have eliminated printers and browsers as the culprit and narrowed it down
to the Web server.  We eliminated browers as the culprit by using the same
brower on the same machine to print barcodes served from 2 different
instances of IIS.  On one site the barcodes always print clean and on the
other they always are fuzzy.  Since we are always printing to the same
printer, that is eliminated as a point of failure.

Does anyone know why images rendered using the Bitmap class might render
differently from one IIS (v5.1) server to another?  Is there a setting
somewhere that I don't know about?  Here is some additional information:

Images Encoded as JPEG with 0% compression
On all machines (fuzzy and clean) .NET Framework is V1.1.4322
On all machines (fuzzy and clean) IIS version is V5.1

Thanks,
Corey
Bob Powell [MVP] - 23 Feb 2007 12:40 GMT
Can you post a section of the code that is used to do the rendering?

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> I have coded a class that uses the bitmap class to generate graphics from
> True Type fonts.  I'm using it primarily to render 3 of 9 barcodes from a
[quoted text clipped - 20 lines]
> Thanks,
> Corey
Corey Ellsworth - 23 Feb 2007 21:57 GMT
Bob,

Thanks for the offer.  We've figured it out.  It was a Windows setting that
was anti-aliasing the barcode font, causing it to look "fuzzy".  We found
and turned off the setting and now all the machines are working
consistently.

For anyone interested, this setting was accessed in Windows XP and 2003
Server by going to the Display Properties -> Appearance Tab -> Click the
Effects button and verify that the "Use the following method to smooth edges
of screen fonts:" setting is unchecked.

Corey

> Can you post a section of the code that is used to do the rendering?
>
[quoted text clipped - 22 lines]
>> Thanks,
>> Corey

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.