Changeset 187 for test/buttons
- Timestamp:
- Jan 1, 2008, 2:56:42 PM (17 years ago)
- Location:
- test/buttons
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/buttons/button.php
r123 r187 1 <? 1 <?php 2 2 include('code.php'); 3 3 … … 10 10 11 11 if(array_key_exists('text', $_GET)) $Text = $_GET['text']; 12 else $Text = ' None';12 else $Text = 'Tabulka cti'; 13 13 14 $FontFile = 'FRIZQT__. TTF';14 $FontFile = 'FRIZQT__.ttf'; 15 15 //$FontFile = 'c:\WINDOWS\fonts\arial.ttf'; 16 16 $FontSize = 20; … … 44 44 $PositionX += $SizeX[$I] / 2; 45 45 } 46 46 47 $Image2 = ImageCreateTrueColor(125, 27); 47 48 imagecopyresampled($Image2, $Image, 0, 0, 0, 0, imagesx($Image2), imagesy($Image2), imagesx($Image), imagesy($Image)); 49 50 48 51 49 52 header("Content-type: image/jpeg"); … … 51 54 ImageDestroy($Image); 52 55 ImageDestroy($Image2); 56 53 57 ?> -
test/buttons/code.php
r123 r187 1 <? 1 <?php 2 2 /* 3 3 ISO8859-2 <-> UTF-8 conversion functions designed for use in PHP-GTK apps -
test/buttons/generate_images.php
r123 r187 1 <? 1 <?php 2 3 include('../global.php'); 2 4 3 5 function GenerateButton($Text = '', $Highlighted = 0) … … 21 23 ImageDestroy($Image3); 22 24 23 $FontFile = 'FRIZQT__. TTF';25 $FontFile = 'FRIZQT__.ttf'; 24 26 //$FontFile = 'c:\WINDOWS\fonts\arial.ttf'; 25 27 $FontSize = 20;
Note:
See TracChangeset
for help on using the changeset viewer.