Globals
Stimulsoft
System
Drawing
Graphics
Class Graphics
Hierarchy
Graphics
Index
Constructors
constructor
Properties
custom
Fonts
measure
Bearing
Scale
Methods
draw
Image
draw
Line
draw
Rectangle
draw
String
fill
Rectangle
translate
Transform
add
Custom
Font
add
Custom
Font
Bytes
add
Custom
Font
File
add
Custom
Font
File
Async
allow
Style
clear
Auto
Load
Fonts
clear
Cache
get
Custom
Font
get
Custom
Font
Name
get
Custom
Fonts
Css
get
Line
Height
Factor
measure
Chars
measure
String
Constructors
constructor
new
Graphics
(
context
:
CanvasRenderingContext2D
)
:
Graphics
Parameters
context:
CanvasRenderingContext2D
Returns
Graphics
Properties
Static
custom
Fonts
custom
Fonts
:
Hashtable
<
string
,
Hashtable
<
FontStyle
,
CustomFontType
>
>
= new Hashtable()
Static
measure
Bearing
Scale
measure
Bearing
Scale
:
number
= 0.8
Methods
draw
Image
draw
Image
(
image
:
Image
, point
:
Point
)
:
void
Parameters
image:
Image
point:
Point
Returns
void
draw
Line
draw
Line
(
pen
:
Pen
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
)
:
void
Parameters
pen:
Pen
x1:
number
y1:
number
x2:
number
y2:
number
Returns
void
draw
Rectangle
draw
Rectangle
(
pen
:
Pen
, rect
:
Rectangle
)
:
void
Parameters
pen:
Pen
rect:
Rectangle
Returns
void
draw
String
draw
String
(
text
:
string
, font
:
Font
, brush
:
Brush
, x
:
number
, y
:
number
)
:
void
Parameters
text:
string
font:
Font
brush:
Brush
x:
number
y:
number
Returns
void
fill
Rectangle
fill
Rectangle
(
brush
:
Brush
, x
:
number
, y
:
number
, width
:
number
, height
:
number
)
:
void
Parameters
brush:
Brush
x:
number
y:
number
width:
number
height:
number
Returns
void
translate
Transform
translate
Transform
(
dx
:
number
, dy
:
number
)
:
void
Parameters
dx:
number
dy:
number
Returns
void
Static
add
Custom
Font
add
Custom
Font
(
font
:
any
, fontName
?:
string
, binFont
?:
any
, filePath
?:
string
, fontStyle
?:
FontStyle
, store
?:
boolean
)
:
void
Parameters
font:
any
Default value
fontName:
string
= null
Default value
binFont:
any
= null
Default value
filePath:
string
= null
Default value
fontStyle:
FontStyle
= null
Default value
store:
boolean
= true
Returns
void
Static
add
Custom
Font
Bytes
add
Custom
Font
Bytes
(
data
:
any
, fontName
?:
string
, fontStyle
?:
FontStyle
, store
?:
boolean
)
:
void
Parameters
data:
any
Default value
fontName:
string
= null
Default value
fontStyle:
FontStyle
= null
Default value
store:
boolean
= true
Returns
void
Static
add
Custom
Font
File
add
Custom
Font
File
(
filePath
:
string
, fontName
?:
string
, fontStyle
?:
FontStyle
, store
?:
boolean
)
:
void
Parameters
filePath:
string
Default value
fontName:
string
= null
Default value
fontStyle:
FontStyle
= null
Default value
store:
boolean
= true
Returns
void
Static
add
Custom
Font
File
Async
add
Custom
Font
File
Async
(
callback
:
function
, filePath
:
string
, fontName
?:
string
, fontStyle
?:
FontStyle
, store
?:
boolean
)
:
void
Parameters
callback:
function
(
)
:
object
Returns
object
filePath:
string
Default value
fontName:
string
= null
Default value
fontStyle:
FontStyle
= null
Default value
store:
boolean
= true
Returns
void
Static
allow
Style
allow
Style
(
fontName
:
string
, fontStyle
:
FontStyle
)
:
boolean
Parameters
fontName:
string
fontStyle:
FontStyle
Returns
boolean
Static
clear
Auto
Load
Fonts
clear
Auto
Load
Fonts
(
)
:
void
Returns
void
Static
clear
Cache
clear
Cache
(
)
:
void
Returns
void
Static
get
Custom
Font
get
Custom
Font
(
fontName
:
string
, fontStyle
:
FontStyle
)
:
any
Parameters
fontName:
string
fontStyle:
FontStyle
Returns
any
Static
get
Custom
Font
Name
get
Custom
Font
Name
(
fontName
:
string
, fontStyle
:
FontStyle
)
:
string
Parameters
fontName:
string
fontStyle:
FontStyle
Returns
string
Static
get
Custom
Fonts
Css
get
Custom
Fonts
Css
(
embeddedData
?:
boolean
)
:
string
Parameters
Default value
embeddedData:
boolean
= false
Returns
string
Static
get
Line
Height
Factor
get
Line
Height
Factor
(
font
:
string
|
Font
)
:
number
Parameters
font:
string
|
Font
Returns
number
Static
measure
Chars
measure
Chars
(
chars
:
number
[]
, count
:
number
, font
:
Font
)
:
Size
Parameters
chars:
number
[]
count:
number
font:
Font
Returns
Size
Static
measure
String
measure
String
(
text
:
string
, font
:
Font
, width
?:
number
, useCache
?:
boolean
, multiple
?:
number
, angle
?:
number
, replaceTags
?:
boolean
)
:
Size
Parameters
text:
string
font:
Font
Default value
width:
number
= null
Default value
useCache:
boolean
= true
Default value
multiple:
number
= 1
Default value
angle:
number
= 0
Default value
replaceTags:
boolean
= false
Returns
Size
Globals
Sti
Options
Stimulsoft
Base
Blockly
Dashboard
Data
Designer
Report
System
Collections
Crypt
Data
Drawing
Drawing2D
Imaging
Printing
Text
Globalization
IO
Internals
Text
Xml
Viewer
Content
Alignment
Font
Style
Graphics
Unit
Orientation
String
Alignment
String
Format
Flags
String
Trimming
Brush
Brushes
Color
Color
Translator
Font
Font
Family
Font
Resources
Graphics
constructor
custom
Fonts
measure
Bearing
Scale
draw
Image
draw
Line
draw
Rectangle
draw
String
fill
Rectangle
translate
Transform
add
Custom
Font
add
Custom
Font
Bytes
add
Custom
Font
File
add
Custom
Font
File
Async
allow
Style
clear
Auto
Load
Fonts
clear
Cache
get
Custom
Font
get
Custom
Font
Name
get
Custom
Fonts
Css
get
Line
Height
Factor
measure
Chars
measure
String
Image
Pen
Point
Rectangle
Size
Solid
Brush
String
Format
Custom
Font
Type
Dash
Style
Hashtable
Hotkey
Prefix
IAs
Is
Image
Format
Line
Cap
Matrix
Sti
Array
endss
startss
Generated using
TypeDoc