Login   Register  
PHP Classes
elePHPant
Icontem

File: testBMP.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Worf Data  >  imagebmp  >  testBMP.php  >  Download  
File: testBMP.php
Role: Example script
Content type: text/plain
Description: A short test example
Class: imagebmp
Generate a file in BMP format from a GD image
Author: By
Last change:
Date: 2006-09-14 04:04
Size: 273 bytes
 

Contents

Class file image Download
<?php
  
require_once "class.imagebmp.php";
  
$img imagecreatefrompng("bild01frombmp.png");

  
header('Content-Type: image/bmp');
  
header('Content-Disposition: inline; filename=test.bmp');
  
  
imagebmp::imagebmp($img);
  
imagedestroy($img);
  unset(
$img);

?>