Modified in version 5.0

AddPicture ( left ;​ top ;​ width ;​ height ;​ sourceType ;​ sourceData ;​ borderStroke ;​ borderColor ;​ borderColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
left num -inf..+inf (required)
top num -inf..+inf (required)
width num 0..10000 (image width) Dimension:[pt]
height num 0..10000 (image height) Dimension:[pt]
sourceType int 1..4 clipboard
sourceData str ""
borderStroke num[] 0..1000 0 Dimension:[pt],Requires xmCHART 5.0 or higher
borderColor rgba 0..255 none Requires xmCHART 5.0 or higher
borderColorVariant int -1..128 solid Requires xmCHART 5.0 or higher
shadowEffect num[] -1000..1000 0 Requires xmCHART 5.0 or higher
shadowColor rgba 0..255 #888a Requires xmCHART 5.0 or higher






By using the AddPicture() function, it is possible to add a picture, e.g. a company logo, to a drawing. Two different picture sources are supported for this: a file (sourceType = file) or a Base64 encoded PNG image stream (sourceType = stream). The arguments sourceType and sourceData are explained in detail in Import Images, together with various examples showing how they are applied. Moreover, by using the arguments borderStroke, borderColor, borderColorVariant>, shadowEffect and shadowColor the border and shadow can be varied.
The upper left-hand corner of the picture is positioned by using the arguments left and top. The coordinate origin is located in the upper left-hand corner of the drawing or the view. The arguments width and height serve to scale the picture. If the width and height are not defined, the actual width and height of the picture are used.

Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now