Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of de77  >  imagebmp + imagecreatefrombmp  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Examples
Class: imagebmp + imagecreatefrombmp
Load and save images in the BMP format
Author: By
Last change:
Date: 2010-02-07 11:16
Size: 510 bytes
 

Contents

Class file image Download
<?php

include 'Bmp.php';

// you can use this the same way as imagepng, imagepng:

header('Content-type: image/bmp');
$im imagecreatefrompng('test.png');
imagebmp($im);

//or imagecreatefromjpeg:

$im imagecreatefrombmp('test.bmp');
imagepng($im);

//but you can also use it as a class:

header('Content-type: image/bmp');
$im imagecreatefrompng('test.png');
Bmp::imagebmp($im);

/*
header('Content-type: image/png');
$im = Bmp::imagecreatefrombmp('test.bmp');
imagepng($im);
*/