GD :: Pfeil.

Zeichnen Sie die Pfeile mit GD
Jetzt downloaden

GD :: Pfeil. Ranking & Zusammenfassung

Anzeige

  • Rating:
  • Lizenz:
  • Perl Artistic License
  • Preis:
  • FREE
  • Name des Herausgebers:
  • Todd Caine
  • Website des Verlags:
  • http://search.cpan.org/~tcaine/

GD :: Pfeil. Stichworte


GD :: Pfeil. Beschreibung

Pfeile mit GD zeichnen GD :: arrow ist eine Perl-Unterklasse von GD :: Polygon, um einen Pfeil zwischen zwei Scheitelpunkten zu zeichnen.Synopsis verwenden GD; Verwenden Sie GD :: Pfeil; meine $ width = 8; mein ($ x1, $ y1) = (100, 10); mein ($ x2, $ y2) = (100, 190); mein ($ x3, $ y3) = (10, 30); mein ($ x4, $ y4) = (190, 75); mein $ arrow = gd :: arrow :: volle-> neu (-x1 => $ x1, -y1 => $ y1, -x2 => $ x2, -y2 => $ y2, -width => $ width, ); mein $ bild = gd :: bild-> neu (200, 200); mein $ weiß = $ bild-> colorallocate (255, 255, 255); mein $ schwarz = $ bild-> colorallocate (0, 0, 0); mein $ blue = $ bild-> colorallocate (0, 0, 255); My $ Yellow = $ Image-> Colorlaub (255, 255, 0); $ bild-> transparent ($ weiß); $ bild-> gefülltepolygon ($ arrow, $ blue); $ bild-> polygon ($ arrow, $ schwarz); My $ halh_arrow_1 = GD :: arrow :: laufthalf-> neu (-x1 => $ x3, -y1 => $ y3, -x2 => $ x4, -y2 => $ y4, -width => $ width, ); My $ halh_arrow_2 = GD :: arrow :: lefthalf-> neu (-x1 => $ x4, -y1 => $ y4, -x2 => $ x3, -y2 => $ y3, -width => $ width) ; $ bild-> gefülltpolygon ($ half_arrow_1, $ blue); $ bild-> polygon ($ halh_arrow_1, $ schwarz); $ bild-> gefülltepolygon ($ halh_arrow_2, $ gelb); $ bild-> polygon ($ halh_arrow_2, $ schwarz); Offenes Bild, "> image.png" oder sterben Sie $!; binmode (Bild, ": RAW"); Bild drucken $ bild-> png; Bild schließen; Beenden (0); Anforderungen: · Perl.


GD :: Pfeil. Zugehörige Software