I want to generate a jpg or bmp file with numbers like that:

I generate the numbers and I have them in an array.
This pic is a screenshot I made from the form (The numbers
are in Textboxes). The problem is: I have to print the numbers
on a card, and with a screenshot the resolution is not good
enough. Any ideas?? Thanks in advance. Dom

Kirtan PatelRank #292 · 8.6K reputationPosted May 31, 2010, 12:34 PM EDT
sample of drawing string is below by which you can write "hello" on the form you can also draw numbers on the screen
private void button1_Click(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
g.DrawString("Hello", this.Font, new SolidBrush(Color.Red), new PointF(20, 20));
}
Dominik93 reputationPosted May 31, 2010, 12:42 PM EDT
yes, I can write those numbers on the screen. Thank you, but my problem is:
I want to save this now to a *.jpg file or a *.bmp file. But not a screenshot,
because a screenshot has only a low resolution (72 dpi). I need at least
150 dpi to print the *.jpg or *.bmp file..
Dominik93 reputationPosted Jun 4, 2010, 1:21 PM EDT
I resolved it by myself.
First I made an empty bmp file (with Paint) called "template.bmp" (900x450 pixel). Then I made a new project ccardprint...
Hope this helps anybody. I can write more comments if anybody wants to...
Greetings, Dom
Dominik93 reputationPosted Jun 4, 2010, 1:54 PM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted Jun 4, 2010, 6:19 PM EDT