3) $channel = -1; // if ($channel<0) { $wpos = $rgnsz/2.0; $hpos = $wpos; } else { $qrtsz = $rgnsz/4.0; if ($channel==0) { $wpos = $qrtsz; $hpos = $qrtsz; } else if ($channel==1) { $wpos = $qrtsz*3; $hpos = $qrtsz; } else if ($channel==2) { $wpos = $qrtsz; $hpos = $qrtsz*3; } else if ($channel==3) { $wpos = $qrtsz*3; $hpos = $qrtsz*3; } } // $filename = get_texture_file($code, $site, $textype, $rgnsz, $wpos, $hpos, $rate, $channel); if ($filename!=null) { output_texture($filename, TEX_IMG_TYPE); if (!USE_TEX_CACHE) unlink($filename); }