- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/total/class/lib.php
r12157 r15078 5 5 * http://www.lockon.co.jp/ 6 6 */ 7 // ±ß¤ÎÃæ¿´ÅÀ¤Èľ·Â¤«¤é¸Ì¤Î½ªÃ¼ºÂɸ¤ò»»½Ð¤¹¤ë¡£7 // 円の中心点と直径から弧の終端座標を算出する。 8 8 /* 9 $cx : Ãæ¿´ÅÀXºÂɸ10 $cy : Ãæ¿´ÅÀYºÂɸ11 $r : Ⱦ·Â12 $e : ³ÑÅÙ9 $cx : 中心点X座標 10 $cy : 中心点Y座標 11 $r : 半径 12 $e : 角度 13 13 */ 14 14 function lfGetArcPos($cx, $cy, $cw, $ch, $e) { 15 // »°³Ñ´Ø¿ôÍѤγÑÅÙ¤òµá¤á¤ë15 // 三角関数用の角度を求める 16 16 $s = 90 - $e; 17 17 $r = $cw / 2; 18 // °ÌÃÖ¤òµá¤á¤ë18 // 位置を求める 19 19 $x = $cx + ($r * cos(deg2rad($s))); 20 20 $y = $cy - (($r * sin(deg2rad($s))) * ($ch / $cw)); … … 22 22 } 23 23 24 /* ²èÁü¤Ë¥Æ¥¥¹¥È¤òÉÁ²è¤¹¤ë*/24 /* 画像にテキストを描画する */ 25 25 function lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB) { 26 26 $color = ImageColorAllocate($dst_image, $arrRGB[0], $arrRGB[1], $arrRGB[2]); 27 27 $text = mb_convert_encoding($text, "UTF-8", CHAR_CODE); 28 // ɽ¼¨³ÑÅÙ28 // 表示角度 29 29 $angle = 0; 30 // ¥Æ¥¥¹¥ÈÉÁ²è30 // テキスト描画 31 31 ImageTTFText($dst_image, $font_size, $angle, $left, $top, $color, $font, $text); 32 32 } 33 33 34 // ɽ¼¨¿§¤Î¼èÆÀ34 // 表示色の取得 35 35 function lfGetImageColor($image, $array) { 36 36 if(count($array) != 3) { … … 41 41 } 42 42 43 // ±ÆÍÑɽ¼¨¿§¤Î¼èÆÀ43 // 影用表示色の取得 44 44 function lfGetImageDarkColor($image, $array) { 45 45 if(count($array) != 3) {
Note: See TracChangeset
for help on using the changeset viewer.