org.ten60.util.image.Text2PNG
An accessor to generate PNGs from text
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

org.ten60.util.image.text2PNG

Used to create PNG bitmap from text.

Module

urn:org:ten60:util:image

Definition

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

ElementRulesDescription
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.


(C) 2003, 1060 Research Limited
© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited