Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tomas Volf  >  PHPico  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: PHPico
Create and manipulate icons in the ICO format
Author: By
Last change:
Date: 4 years ago
Size: 386 bytes
 

Contents

Class file image Download
<?php
    set_time_limit
(2);
    require_once(
'PHPico.php');
    
$i = new PHPico\Image();
    
$i->createBlankImage(888);
    
$i->addColor(03255000);
    
$i->addColor(02025500);
    
$i->addColor(01002550);
    
$i->setPixel(00030);
    
$i->setPixel(01120);
    
$i->setPixel(02210);
    
$i->setPixel(03330);
    
$i->save('F''test3971.ico');    
?>