GD :: arrow. الترتيب والملخص
- رخصة:
- Perl Artistic License
- موقع ويب الناشر:
- http://search.cpan.org/~tcaine/
GD :: arrow. العلامات
GD :: arrow. وصف
رسم الأسهم باستخدام GD GD :: Arrow عبارة عن فئة فرعية من GD :: Polygon المستخدمة لرسم سهم بين رأيتين. استخدم GD :: arrow؛ بلدي عرض $ = 8؛ بلدي ($ x1، $ y1) = (100، 10)؛ بلدي ($ x2، $ y2) = (100، 190)؛ بلدي ($ x3، $ y3) = (10، 30)؛ بلدي ($ x4، $ y4) = (190، 75)؛ بلدي $ arrow = gd :: arrow :: Full-> جديد (-x1 => $ X1، -Y1 => $ y1، -x2 => $ x2، -y2 => $ y2، -width => ) بلدي $ image = gd :: Image-> جديد (200، 200)؛ بلدي الأبيض = $ Image-> ColorAllection (255، 255، 255)؛ بلدي الأسود = $ image-> colorallocate (0، 0، 0)؛ بلدي $ الأزرق = $ image-> colorallocate (0، 0، 255)؛ بلدي $ الأصفر = $ image-> colorallocate (255، 255، 0)؛ $ Image-> شفافة ($ أبيض)؛ $ Image-> FittingPolygon ($ arrow، $ الأزرق)؛ $ Image-> Polygon (السهم $، أسود $)؛ My $ half_arrow_1 = gd :: arrow :: lefthalf-> جديد (-x1 => $ x3، -y1 => $ y3، -x2 => $ x4، -y2 => $ y4، -width => ) بلدي al half_arrow_2 = gd :: arrow :: lefthalf-> جديد (-x1 => $ x4، -y1 => $ y4، -x2 => $ x3، -y2 => $ y3، -width => $ العرض => $ العرض) ؛ $ Image-> FittingPolygon ($ half_arrow_1، $ الأزرق)؛ $ Image-> مضلع (alf_arrow_1، $ أسود)؛ $ Image-> FittingPolygon ($ half_arrow_2، $ الأصفر)؛ $ Image-> polygon ($ half_arrow_2، $ أسود)؛ افتح الصورة، "> image.png" أو يموت $! binmode (الصورة، ": RAW")؛ طباعة صورة $ Image-> PNG؛ صورة وثيقة؛ الخروج (0)؛ متطلبات: perl.
GD :: arrow. برامج ذات صلة