7.6

Table Of Contents
l Only UTF8 text can be displayed in a PlanetPress Talk object defined using the beginUTF8paragraph
endUTF8paragraph structure. Non-UTF8 static text should therefore be converted to its UTF8 reference using the
Ansi/UTF8 Converter (place the cursor within the string and press CTRL+N). Variable text should be converted using
MapUTF8 (function).
Syntax
beginUTF8paragraph( lmargin, rmargin, firstindent, align, leading, majormode, [forcedwordwrap] )
%Your Paragraph data here
endUTF8paragraph()
Arguments
Same as BeginParagraph EndParagraph (procedure).
Code Sample Example
This example displays a justified paragraph with the UTF8 text running from right to left.
Example
setlinewidth(0.007)moveto(0,0)
rlineto(&width,0)
rlineto(0,&height)
rlineto(neg(&width),0)
rlineto(0,neg(&height))
closepath()
stroke()
moveto(&width/2,&height/18)
BeginUTF8Paragraph(0.0000,&width,0.0000,'leftright',0.1667,'rtl')
SetStyleExt(&Style1,12.0000,0,[100],100)
ShowUTF8('\u0623\u0633\u0627\u0633\u064B\u0627\u060C')
EndUTF8Paragraph()
BitmapWidth/BitmapHeight (function)
Returns the width or height, in inches, of a bitmap image resource, at the specified resolution.
Syntax
Bitmapwidth( name, resolution ) measure value
Bitmapheight( name, resolution ) measure value
Argument
name
String value that specifies the name of the bitmap image resource.
resolution
Integer value that specifies the resolution at which you want to measure the width or height of the bitmap.
©2010 Objectif Lune Inc - 258 -