Ignore:
Timestamp:
2007/02/06 09:55:06 (19 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/total/class/SC_GraphBase.php

    r170 r171  
    7474    // ¥ê¥µ¥ó¥×¥ë 
    7575    function resampled() { 
    76         $tmp_image = imagecreatetruecolor($this->bgw/2, $this->bgh/2); 
    77         if(imagecopyresampled($tmp_image, $this->image, 0, 0, 0, 0, $this->bgw, $this->bgh, ($this->bgw/2), ($this->bgh/2))) { 
     76        $new_width = $this->bgw / 2; 
     77        $new_height = $this->bgh / 2;        
     78        $tmp_image = imagecreatetruecolor($new_width, $new_height); 
     79        if(imagecopyresampled($tmp_image, $this->image, 0, 0, 0, 0, $this->bgw, $this->bgh, $new_width, $new_height)) { 
    7880            $this->image = $tmp_image; 
    7981        } 
Note: See TracChangeset for help on using the changeset viewer.