software products and customization
Contact: support@xuebrothers.net Home page

Text2PNG


Text2PNG converts text to high quality PNG image with alpha channel, and optionally embeds the generated image as watermark to another image.

Sample Images
Command Line Arguments
Argument Description Example
/text??:xx Specifies The input text, in one of the three syntax:
  • /text:xx : input is single line text, xx is the text
  • /textml:xx : input is multiple-line text, xx is the text. "\r\n" will be translated to new line and "\t" to tab
  • /textfile:xx : input is a text file, xx is the file name
/textml:Hello\r\nWorld
/font:xx Specifies the font used to draw the input text. The syntax of xx is font-name;height;bius:
  • font-name : the face name of the font. If the font name has blank spaces, it should be quoted. For example: "Times new Roman"
  • height : the height of the font, in points
  • bius : means b(bold), i(talic), underline, strikeout
/font:Arial;24;b
/font:"Times new roman";24;u
/color:xx Specifies the color used to draw the input text. The syntax of xx is color-value;transparency:
  • color-value : can be web-page format or decimal r,g,b format
  • transparency : the transparency of the text, from 0 to 100
/color:#ff0000;30
/color:255,0,0,30
/align:xx Specifies the alignment of the text. xx is one of lcr:
  • l : left alignment
  • c : center alignment
  • r : right alignment
/align:c
/rotate:xx Specifies the angle to rotate the text. The syntax of xx is angle;wrap.
  • angle : degree value of the rotating angle
  • wrap : wrap the text to fill the blank space
/rotate:32;wrap
/roate:32
/border:xx Specifies the width of extra border added to the generated image. xx is size in pixel of the border. /border:5
/bgcolor:xx Specifies the background color of the image. The syntax of xx is color-value.
  • color-value : can be web-page format or decimal r,g,b format

This argument is meaning full only when:

  • The output image type does not support alpha channel, JPEG for example;
  • The output image is applied as water mark to another image. See the wm argument for more
/bgcolor:#ffffff
/color:255,255,255
/output:xx Specifies the output image file name. xx is the output file name. /output:my.png
/wm:xx Applies the generated image as water mark to another image.
The synatax of xx is "image-file-name;position;margin;transparency
  • image-file-name: The image to which the water mark will be applied. (The file will be overwritten)
  • postion: A value from 1 to 9.
    • top-left;
    • top-center;
    • top-right;
    • middle-left;
    • middle-center;
    • middle-right;
    • bottom-left;
    • bottom-center;
    • bottom-right;
  • margin: distance between water mark border and the image border
  • Transparency: Specify the background transparency.
See example
/wm:my.jpg;9;12;30

Buy Picol

Click the button below the make the payment at PayPal. Within 24 hours after notified by PayPal of your payment, we will send you the licensed copy.

Individual License, USD 15.0:     
Business License, USD 35.0: