printer_create_pen

(No version information available, might be only in CVS)

printer_create_pen — Crée un nouveau stylo

Description

resource printer_create_pen ( int $style, int $width, string $color )

Crée un nouveau stylo et retourne une ressource. Un stylo est utilisé pour dessiner des lignes et des courbes. Pour un exemple, voyez la fonction printer_select_pen() .

Liste de paramètres

style

style doit être l'une des constantes suivantes :

  • PRINTER_PEN_SOLID : crée un stylo plein.
  • PRINTER_PEN_DASH : crée un stylo pointillé avec des tirets.
  • PRINTER_PEN_DOT : crée un stylo pointillé avec des points.
  • PRINTER_PEN_DASHDOT : crée un stylo pointillé avec des tirets et des points.
  • PRINTER_PEN_DASHDOTDOT : crée un stylo pointillé avec des tirets et des doubles points.
  • PRINTER_PEN_INVISIBLE : crée un stylo invisible.

width

width spécifie la largeur du stylo.

color

color doit être une couleur au format RGB hexadécimal, "000000 " pour le noir.

Valeurs de retour

Retourne un gestionnaire de stylo, ou FALSE si une erreur survient.