Solved

"Hello World" to .GIF - HOW?

Posted on 2006-07-02
5
221 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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