Ignore:
Timestamp:
2007/07/20 15:58:59 (17 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
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
  • branches/feature-module-update/html/admin/total/class/lib.php

    r12157 r15078  
    55 * http://www.lockon.co.jp/ 
    66 */ 
    7 // ±ß¤ÎÃæ¿´ÅÀ¤Èľ·Â¤«¤é¸Ì¤Î½ªÃ¼ºÂɸ¤ò»»½Ð¤¹¤ë¡£ 
     7// 円の中心点と直径から弧の終端座標を算出する。 
    88/* 
    9     $cx : Ãæ¿´ÅÀXºÂɸ 
    10     $cy : Ãæ¿´ÅÀYºÂɸ 
    11     $r  : Ⱦ·Â 
    12     $e  : ³ÑÅÙ 
     9    $cx : 中心点X座標 
     10    $cy : 中心点Y座標 
     11    $r  : 半径 
     12    $e  : 角度 
    1313*/ 
    1414function lfGetArcPos($cx, $cy, $cw, $ch, $e) { 
    15     // »°³Ñ´Ø¿ôÍѤγÑÅÙ¤òµá¤á¤ë 
     15    // 三角関数用の角度を求める 
    1616    $s = 90 - $e; 
    1717    $r = $cw / 2; 
    18     // °ÌÃÖ¤òµá¤á¤ë 
     18    // 位置を求める 
    1919    $x = $cx + ($r * cos(deg2rad($s))); 
    2020    $y = $cy - (($r * sin(deg2rad($s))) * ($ch / $cw));      
     
    2222} 
    2323 
    24 /* ²èÁü¤Ë¥Æ¥­¥¹¥È¤òÉÁ²è¤¹¤ë */ 
     24/* 画像にテキストを描画する */ 
    2525function lfImageText($dst_image, $text, $font_size, $left, $top, $font, $arrRGB) { 
    2626    $color = ImageColorAllocate($dst_image, $arrRGB[0], $arrRGB[1], $arrRGB[2]); 
    2727    $text = mb_convert_encoding($text, "UTF-8", CHAR_CODE); 
    28     // ɽ¼¨³ÑÅÙ  
     28    // 表示角度  
    2929    $angle = 0; 
    30     // ¥Æ¥­¥¹¥ÈÉÁ²è 
     30    // テキスト描画 
    3131    ImageTTFText($dst_image, $font_size, $angle, $left, $top, $color, $font, $text); 
    3232} 
    3333 
    34 // ɽ¼¨¿§¤Î¼èÆÀ 
     34// 表示色の取得 
    3535function lfGetImageColor($image, $array) { 
    3636    if(count($array) != 3) { 
     
    4141} 
    4242 
    43 // ±ÆÍÑɽ¼¨¿§¤Î¼èÆÀ 
     43// 影用表示色の取得 
    4444function lfGetImageDarkColor($image, $array) { 
    4545    if(count($array) != 3) { 
Note: See TracChangeset for help on using the changeset viewer.