com-jpexs-image-bmp
[ class tree: com-jpexs-image-bmp ] [ index: com-jpexs-image-bmp ] [ all elements ]

Procedural File: bmp.php

Source Location: /vendor/JPEXS/bmp.php



Page Details:



Tags:

author:  JPEXS
version:  1.1
copyright:  

(c) JPEXS 2004-2009

Webpage: http://www.jpexs.com Email: [email protected]

If you like my script, you can donate... visit my webpages or email me for more info.

Version changes: v1.1 - redesigned sourcecode, phpdoc included, all internal functions and global variables have prefix "jpexs_"

TODO list:

  • better error handling
  • class encapsulation
License:
  • you can freely use it
  • you can freely distribute sourcecode
  • you can freely modify it as long as you leave my copyright/author info in source code
  • if you developing closesource application, you should add my name at least to "about" page of your web application
  • if you create an amazing modification, please contact me... I can publish link to your webpage if you're interested...
  • if you want to use my script in commercial application for earning money, you should make a donation to me first









imagebmp [line 39]

boolean imagebmp( resource $img, [string $file = ""], [boolean $useRLE = false])

Creates new BMP file from image resource



Tags:

return:  True when successfully writen to specified file


Parameters

resource   $img   Image resource to convert
string   $file   File to save image to. If ommited or "", file is written to standard output
boolean   $useRLE   When true, file will be saved with RLE compression (EXPERIMENTAL)
[ Top ]



imagecreatefrombmp [line 217]

resource imagecreatefrombmp( string $file)

Reads image from a BMP file and converts it to image resource



Tags:

return:  

Image resource or false on error

Note: Reading RLE compressed bitmaps is EXPERIMENTAL Reading palette based bitmaps with less than 8bit palette is EXPERIMENTAL



Parameters

string   $file   File to read BMP image from
[ Top ]



jpexs_decbin8 [line 518]

void jpexs_decbin8( $d)



Parameters

   $d  
[ Top ]



jpexs_decbinx [line 523]

void jpexs_decbinx( $d, $n)



Parameters

   $d  
   $n  
[ Top ]



jpexs_freadbits [line 489]

void jpexs_freadbits( $f, $count)



Parameters

   $f  
   $count  
[ Top ]



jpexs_freadbyte [line 451]

void jpexs_freadbyte( $f)



Parameters

   $f  
[ Top ]



jpexs_freaddword [line 469]

void jpexs_freaddword( $f)



Parameters

   $f  
[ Top ]



jpexs_freadlngint [line 464]

void jpexs_freadlngint( $f)



Parameters

   $f  
[ Top ]



jpexs_freadword [line 456]

void jpexs_freadword( $f)



Parameters

   $f  
[ Top ]



jpexs_inttobyte [line 532]

void jpexs_inttobyte( $n)



Parameters

   $n  
[ Top ]



jpexs_int_to_dword [line 508]

void jpexs_int_to_dword( $n)



Parameters

   $n  
[ Top ]



jpexs_int_to_word [line 512]

void jpexs_int_to_word( $n)



Parameters

   $n  
[ Top ]



jpexs_retBits [line 478]

void jpexs_retBits( $byte, $start, $len)



Parameters

   $byte  
   $start  
   $len  
[ Top ]



Documentation generated on Sat, 31 Jul 2010 20:37:57 +0200 by phpDocumentor 1.4.2