Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Convert Text to Image (Automated)

Posted on 2010-11-10
3
Medium Priority
?
497 Views
Last Modified: 2012-05-10
Basically I have a list of a few hundred telephone numbers. I am wanting to create an image for each number without having to open paint and type the number then hit save a bunch of times. Is there a way to either

a) do this inside of excel?

b) use asp.net to accomplish this

c) use c# to accomplish this?

Thanks in advance for the help!
0
Comment
Question by:DotNetChano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 2000 total points
ID: 34102726
This should get you started.
Creates a bitmap, draws text, saves to file.

            private void button1_Click(object sender, EventArgs e)
            {
                  string s = "Test String";
                  Bitmap bmp = new Bitmap(100, 50);
                  Graphics g = Graphics.FromImage(bmp);
                  g.FillRectangle(Brushes.Black , 0, 0, bmp.Width,bmp.Height);
                  g.DrawString(s, new Font("Tahoma", 12), Brushes.White, new PointF(0, 0));
                  bmp.Save("c:\\test22.png",ImageFormat.Png);
                  g.Dispose();
                  bmp.Dispose();
            }
0
 
LVL 4

Author Closing Comment

by:DotNetChano
ID: 34103149
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

688 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