org.ten60.util.image.Text2PNG
An accessor to generate PNGs from text
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > org.ten60.util.image.Text2PNG

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:util:image

Definition

Active URI Base

active:org.ten60.util.image.text2PNG

Format

<instr>
  <type>org.ten60.util.image.text2PNG</type>
  <operand>mydocument.xml#xpointer(/root/text)</operand>
  <operator>
    <text2PNG>
      <fontface>Serif</fontface>
      <fontsize>20</fontsize>
      <color>888844</color>
      <bgcolor>FFFFFF</bgcolor>
    </text2PNG>
  </operator>
  <target>this:response</target>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory org.ten60.util.image.text2PNG
operandMandatory Fragment OKthe text source
operatorMandatory A text2PNG document with specification of the image to generate
targetMandatory The image resource

Generates a PNG bitmap image of the text contained in the text element fragment presented as the operand xml document.

The operator provides a text2PNG specification document which specifies font, fontsize, foreground and background colors. New fonts can be added to the fonts/ directory of the util_image module.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.