TagPicture
New in version 5.0
TagPicture ( width ; height ; position ; alignment ; gap ; sourceType ; sourceData ; borderStroke ; borderColor ; borderColorVariant ; shadowEffect ; shadowColor )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
width | num | 0..10000 | (image width) | Dimension:[pt] |
height | num | 0..10000 | (image height) | Dimension:[pt] |
position | num | 1..4 | left | Relative to text |
alignment | num | 1..3 | 2 | |
gap | num | -10000..+10000 | 2% | |
sourceType | int | 1..4 | clipboard | |
sourceData | str | "" | ||
borderStroke | num[] | 0..1000 | 0 | Dimension:[pt] |
borderColor | rgba | 0..255 | none | |
borderColorVariant | int | -1..128 | solid | |
shadowEffect | num[] | -1000..1000 | 0 | |
shadowColor | rgba | 0..255 | #888a |
Examples
TagPicture(30;40;left;center;15;stream;"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4A...")
Description
A tag consists of a text object and an optional symbol or picture object and an optional background. The arguments sourceType and sourceData are explained in detail in Import Images, together with various examples showing how they are applied.
| TAG_PICTURE_01 |
1 | OpenDrawing(250;150) |
2 | OpenTag(20;20) |
3 | TagPicture(30;40;left;center;15;stream;"iVBORw0KGgoAAAANSUhEUgAAAB4AAAAoCAIAAABmcd1FAAACdUlEQVRIx2OccdaUgTaAiYFmgOn/fwYaISaG/ww0QozTTpsQ9NqzO99X9z16cPWrkDi7Y6SYTaAoMQHCOO2UCUFzO+Kv/fn9Hy7ikSjplylNRFgT8tnOhc+RzQWCvcte/vr5j6BGwmH99M53NOf8/vnvzdOfBDUSTiHCUuxoRjOzMvKLsBGRQggB3wxpoFnIIm5xkpw8zMSkawJAUomjcIa6iiEvExMj0AeBeTJeKZL/iQCMk48Z0yg3Mk7Ca/TrJz9vn/385Pa3f38RiURcjkNajUvNmJeQ0UexG/339/+ZpXdunP6ES6ewJHveVDVBcTbcxROOpHP58Ac85gLB2+c/t815hjfx4ZD69O43xAgeARZMcyGCb5/9IifLfP/yF5KE+YRYMY2GhMOXD7/xuxp7kocYLSDC+h9baPCLguz7/vUvnkyD09U/vv4FG4E9loC5EUj+AFpPRkaHuloMu9GCYiBX//z+78+v/yRndKjRoqzYjYalue9gz5FWgUEChE8Yu9F8ImxwF5BcgX379BfscewBwsXDzM7JhD+4cacQiKuRAgRiFgQAFfCLgKS+fvpDZgoRRDJaSBKp4P4PjWG8rsZhqbg8h4waFxc/CwMsYYvKsCOZzCCvxQ1UwMTCSHIKKZiuDkTAMhouIiKNUt24J0gCFWhb8ZPfxEEkOAlElBLXxCEa8PCzcPEyk9QwIwRggc3Jy8zJy4JIIoQAEQ0zGODmY+HkZkbEI8HGAvEe5AK5mpmaLVU4AIYGPKyp11JlYGBlY2JmZuTmZ0HONYRaT8QFNTAo/oMdTnRQMxAbjTzgbMnBRUI0MrZv1x+CfZkhaTQAZhyc0O25ucYAAAAASUVORK5CYII=") |
4 | TagText("<span size=16><b>L</b></span>orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod <b><i>tempor incididunt</i></b> ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";Verdana;11;plain;black;left;170;100) |
5 | CloseTag() |
6 | /* Background() // Uncomment while positioning the tag element. */ |
7 |
More examples can be found under TagText() and TagSymbol() .