Location: PHPKode > scripts > BMP_Loader > bmp_loader/documentation_v1.0.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>BMP_loader v1.0 documentation</title>
<style type="text/css">
table td {
padding-left: 8px;
padding-right: 8px;
}
table {
width: 800px;
}
.first {
overflow: no;
font-weight: bold;
}
</style>
</head>
<body>
<h1>BMP_loader v1.0 documentation</h1>
<h2>Constant fields</h2>
<table>
<tr><td class="first">BITMAPCOREHEADER</td><td>The format string that represents the OS/2 V1 header type. It is used by the PHP unpack() function.</td></tr>
<tr><td class="first">BITMAPINFOHEADER</td><td>The format string that represents the Windows V3 or higher header type. It is used by the PHP unpack() function.</td></tr>
</table>
<h2>Method summary</h2>
<table>
<tr><td class="first">BMP_Loader($path = "")</td><td>The construstor of the class. If the lenght of the $path argument is greater than zero, tries to open the file and read the bitmap data from it.</td></tr>
<tr><td class="first">Load_BMP($path)</td><td>Tries to open the file given with the $path argument and read the bitmap data from it.</td></tr>
<tr><td class="first">Load_BMP_Data($data)</td><td>Reads the bitmap data from direct input string.</td></tr>
<tr><td class="first">Get_BMP_Data()</td><td>Returns the whole image as a GD resource.</td></tr>
<tr><td class="first">Get_Image()</td><td>Reads the bitmap data from direct input string.</td></tr>
</table>
<h2>Static method summary</h2>
<table>
<tr><td class="first">imagebmp($img, $dest)</td><td>Writes the image behind the $img resource to a file. The path to the destination file is given by the $path argument. Returns false on failure, and true when no errors detected.</td></tr>

</table>
</body>
</html>
Return current item: BMP_Loader