Solved

"Hello World" to .GIF - HOW?

Posted on 2006-07-02
5
217 Views
Last Modified: 2010-04-16
My boss wants to show text on webpages such that Search-Spiders cannot easily scrape the info ...

So, I need to convert flat text into .JPG or .GIF in C# code-behind in an ASP.NET server-side class. The really tricky part is, the text must be magnified/shrunk and line-wrapped to appear as "best-possible-use-of-visual-space" in an exact image size of H:100px -by- W:150px.

Darn! I don't even know where to start looking for a solution!

Any help appreciated!
0
Comment
Question by:volking
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 400 total points
ID: 17026540
this code in vb.net, so it will give you a start
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3696&lngWId=10

not the same as you wanted, but it will help you to do what do you want
http://www.codeproject.com/aspnet/AspNetCreateTextImage.asp
0
 
LVL 22

Assisted Solution

by:Mohammed Nasman
Mohammed Nasman earned 400 total points
ID: 17026548
0
 
LVL 5

Author Comment

by:volking
ID: 17026855
@mnasman - Thanks! I'll check-out the links but I'm encouraged ... captcha distorts images ... and the boss wants to apply different font-familys and font-colors such that the resultant images "look" fairly normal.
0
 
LVL 5

Assisted Solution

by:pgloor
pgloor earned 100 total points
ID: 17041871
If you know how to create a gif or a jpeg file from a Bitmap, this might be for you:

http://www.codeproject.com/dotnet/vbtextoverlay.asp

The article/example has been written for VB.NET. However, the core functions have been ported to C#.

The example might not been complete, but is a good starting point for solving your problem.

Peter
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Data Saving(2) 2 41
How to get the web content with different encodings 2 28
VB.Net How to Exit Sub - Exit Form??? 5 51
Finally almost got it 5 16
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now