SubscribeFILLS=(firebrick2 magenta2 NavyBlue DarkGreen DarkGoldenrod2)
FONTS=(Helvetica-BoldOblique Palatino-Bold AvantGarde-Book Times-Italic)
X=1
while [ $X -lt 100 ]; do
FILL=${FILLS[( $RANDOM % ${#FILLS[@]} )]}
FONT=${FONTS[( $RANDOM % ${#FONTS[@]} )]}
convert -size 500x500 -fill $FILL -font $FONT -gravity center label:$X ${X}.png
let X=X+1
done
Dim maxNumber As Integer = 100
Dim textSize As New Size(500, 500)
Dim textLocation As New Point(0, 0)
Dim numberofdigits As Integer = CInt(Math.Floor(Math.Log10(maxNumber))) + 1
For i As Integer = 1 To maxNumber
Dim numberText As String = i.ToString
Dim font As New Font("Lucida Console", 240, FontStyle.Regular)
Dim blankImage As New Bitmap(textSize.Width, textSize.Height)
Dim graph As Graphics = Graphics.FromImage(blankImage)
graph.DrawString(numberText, font, Brushes.Black, textLocation.X, textLocation.Y)
Dim fileName As String = i.ToString.PadLeft(numberofdigits, "0"c) & ".bmp"
blankImage.Save(fileName)
Next
You are not logged in, either login or create an account to post comments
posted by le morte de bea arthur at 2:51 AM on April 30