|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » site_pageranks() » imagecreatefrompng() » htmlentities() » imagepng() » imagestring() » imagedestroy() » preg_match() » imagecolorallocate() » header() » fopen() » getimagesize() » session_start() » strstr() » preg_match_all() » strpos() » ob_start() » ob_flush() » flush() » str_replace() » array2vars() » nl2br() » htmlspecialchars() » setcookie() » urlencode() » preg_split() » ereg() » ereg_replace() » var_dump() Our Sponsors » Powerpointing » Rock Music Community - meet fans » Business Strategy Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.
Local search Connecticut furniture stores can be found at FurnitureCatch:
Furniture Stores Norwalk,
Furniture Stores Stamford,
Furniture Stores Greenwich,
Furniture Stores New Canaan,
Furniture Stores Darien
|
PHP Functions
Function: image2wbmp (PHP 4 >= 4.0.5, PHP 5) image2wbmp -- Output image to browser or fileDescriptionint image2wbmp ( resource image [, string filename [, int threshold]] )image2wbmp() creates the WBMP file in filename from the image image . The image argument is the return from imagecreate() . The filename argument is optional, and if left off, the raw image stream will be output directly. By sending an image/vnd.wap.wbmp content-type using header() , you can create a PHP script that outputs WBMP images directly.
Example 1. image2wbmp() example
<?php
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
?>
Note: WBMP support is only available if PHP was compiled against GD-1.8 or later. Related Function(s) |