Discussion:
Numbers
(too old to reply)
Lysander
2008-11-19 11:20:59 UTC
Permalink
Any tip would help
The .net Framework makes this easy.

You can draw - for example - a rectangle, have a gradient color as the
rectangle's background, write a text onto it, for example text "51",
using any installed font, and then export that as .bmp, .jpg, .png

It should be possible to do that in a loop.

I can probably help you to write the .net class for this, if you have a
few days of time, but I am ABSOLUTELY unable to do anything beautiful or
artistic :)
So you would have to do the "take this font, that fontsize, those
colours" part.
Ronnie MacGregor
2008-11-19 14:45:46 UTC
Permalink
On Wed, 19 Nov 2008 11:49:55 +0100
In order to test my image cataloguer / clasiffier program
I need numbers.
Do you mean that you want to display a graphic number "tag" in your dBASE app ?

Then create them on demand using a PaintBox control.

Have a look at the ToolBar Designer in the rmToolBar.cc package, and you will
see yellow circles with a black number superimposed to show the toolbar element
number, in the same style as the dBASE form designer. This is done using
rmPaintBox.cc and you are very welcome to steal <g> any chunks of code you wish
to do this job for you.

http://www.dbasedeveloper.co.uk/rmToolBar/rmToolBar.htm

http://www.dbasedeveloper.co.uk/dBulletin/bu21tbar.htm


http://www.dbasedeveloper.co.uk/rmPaintBox/rmPaintBox.htm
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
evilaro
2008-11-19 20:00:21 UTC
Permalink
Ronnie:

Please see my answer to Lysander....
Still I will be using your routines... I always wanted to use the
paintbox but never got around it.

Emilio
Post by Ronnie MacGregor
On Wed, 19 Nov 2008 11:49:55 +0100
In order to test my image cataloguer / clasiffier program
I need numbers.
Do you mean that you want to display a graphic number "tag" in your dBASE app ?
Then create them on demand using a PaintBox control.
Have a look at the ToolBar Designer in the rmToolBar.cc package, and you will
see yellow circles with a black number superimposed to show the toolbar element
number, in the same style as the dBASE form designer. This is done using
rmPaintBox.cc and you are very welcome to steal <g> any chunks of code you wish
to do this job for you.
http://www.dbasedeveloper.co.uk/rmToolBar/rmToolBar.htm
http://www.dbasedeveloper.co.uk/dBulletin/bu21tbar.htm
http://www.dbasedeveloper.co.uk/rmPaintBox/rmPaintBox.htm
--
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk
evilaro
2008-11-19 19:58:18 UTC
Permalink
Lysander:

Thanks for the help..... you gave me the idea on how to do its ;)

As you say I can using the graphic tool I use for my application
to draw a rectangle of any color, put a number or lettering of
any color and size, font etcand controle it with the numbers and characters
that I want...
It took me 2 hours.

http://www.evilaro.dbasedeveloper.co.uk/pdf/400_numbers.pdf

It takes to make 400 images 30 sec.
Not the best looking numbers, but this is what I needed.


The sample above, its a prof that if i do not use images with numbers
it would be much work to see if the image possitions are correct, also the
correcponding titles.

Thaks for your help.


Emilio
The most intelligent people must be the ones that listen.. and I listen a
lot ;)
Post by Lysander
Any tip would help
The .net Framework makes this easy.
You can draw - for example - a rectangle, have a gradient color as the
rectangle's background, write a text onto it, for example text "51", using
any installed font, and then export that as .bmp, .jpg, .png
It should be possible to do that in a loop.
I can probably help you to write the .net class for this, if you have a
few days of time, but I am ABSOLUTELY unable to do anything beautiful or
artistic :)
So you would have to do the "take this font, that fontsize, those colours"
part.
Loading...