|
|
|
|
|
- Properties specific to picRTF variables
picRTF (Variable type) In french: picRTF
The picRTF type is used to define all the advanced characteristics of a layer that contains RTF. You can define and change the characteristics of this layer in RTF using different WLanguage properties. Warning: This type of variable is only used with picLayer type variables.. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. sFichier is string = fRepExe() + ["\"] + "ImgSource.jpg"
MonWDPic is WDPic = sFichier
CalqueFiligrane is picLayer
CalqueFiligrane.Name = "Filigrane"
CalqueFiligrane.Width = MonWDPic.Width
CalqueFiligrane.Height = MonWDPic.Height
CalqueFiligrane.Type = typeLayerRTF
CalqueFiligrane.RTF = [
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1036
{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fnil\fcharset0 Calibri;}}
{\colortbl ;\red255\green0\blue0;}
{\*\generator Riched20 10.0.18362}\viewkind4\uc1
\pard\widctlpar\sl276\slmult1\f0\fs24\lang12 Mon
\cf1 texte\cf0 en \b RTF\b0\f1\fs22\par}}
]
ArrayAdd(MonWDPic.Layer, CalqueFiligrane)
EI_SansNom1 = MonWDPic
Info("A suivre ...")
CalqueFiligrane<-MonWDPic.Layer["Filigrane"]
CalqueFiligrane.Text = "Mon filigrane"
EI_SansNom1 = MonWDPic
Info("A suivre ...")
sNouveauFichier is string = fRepExe() + ["\"] + "ImgDestination.wdpic"
MonWDPic.Sauve(sNouveauFichier)
MonNouveauWDPic is WDPic = sNouveauFichier
CalqueFiligrane<-MonNouveauWDPic.Layer["Filigrane"]
CalqueFiligrane.Texte.Police.Angle = 30
CalqueFiligrane.Texte.Police.Taille = 150
CalqueFiligrane.Texte.Police.Couleur = iDarkRed
CalqueFiligrane.RTF = [
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1036
{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fnil\fcharset0 Calibri;}}
{\colortbl ;\red255\green0\blue0;}
{\*\generator Riched20 10.0.18362}\viewkind4\uc1
\pard\widctlpar\sl276\slmult1\f0\fs24\lang12 Mon
\cf1 texte\cf0 en \b RTF1\b0\f1\fs22\par}}
]
EI_SansNom1 = MonNouveauWDPic
Remarks Properties specific to picRTF variables The following properties can be used to handle an RTF layer: | | | Property name | Type used | Effect |
---|
RTF | Character string | Text with rich text format (with RTF tags). |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|