PHP Classes

File: x1.php

Recommend this page to a friend!
  Classes of Jonathan Discipulo   EBM2BMP Class   x1.php   Download  
File: x1.php
Role: Example script
Content type: text/plain
Description: Sample script
Class: EBM2BMP Class
Convert emblem images in EBM to BMP format
Author: By
Last change:
Date: 16 years ago
Size: 564 bytes


Class file image Download

// get variables from query string
parse_str($_SERVER['QUERY_STRING'], $query);

// edit this path pointing to the path where the RO guild emblems were saved
$path = '.';

// includes the EBM2BMP class

// create an instance of EBM2BMP class
$emblem = new EBM2BMP($path);

// convert the EBM file to BMP string

$emblem->replaceColor('FF00FF', 'FFFFFF'); // replaces magenta (FF00FF) to white (FFFFFF)

// display BMP string as image/bmp type