Metadata-Version: 1.1
Name: pybmp
Version: 1.0.1
Summary: BMP image handler for Python (to numpy ndarray or PIL) native C .pyd
Home-page: https://github.com/sanjonemu/pybmp
Author: sanjonemu
Author-email: sanjo_nemu@yahoo.co.jp
License: MIT License
Description: pybmp
        =====
        
        BMP image handler for Python (to numpy ndarray or PIL) native C .pyd
        
        How to use
        ----------
        
        ::
        
            from pybmp import bmp
            import numpy as np
            import matplotlib.pyplot as plt
            # import matplotlib.image as mpimg
            from scipy import misc
            from PIL import Image
        
            fig = plt.figure()
            axis = [fig.add_subplot(211 + _) for _ in range(2)]
            img = Image.open('../res/cs_checker_7x5_24.bmp') # R,G,B
            # fake convert to ubytes img:R,G,B -> s:R,G,B,FF -> im:B,G,R,A -> bm:B,G,R,A
            nda = np.array(img)
            r, c, m = nda.shape
            s = img.tostring('raw', 'RGBX') # append A as FF
            im = Image.fromstring('RGBA', (c, r), s, 'raw', 'BGRA') # fake to B,G,R,A
            bm = np.array(im) # fake to B,G,R,A
            axis[0].imshow(nda)
            bmp.BMP(bm, fn='/tmp/cs_checker_out_.bmp')
            # plt.show()
        
        Links
        -----
        
        github https://github.com/sanjonemu/pybmp
        
        pybmp https://pypi.python.org/pypi/pybmp
        
        License
        -------
        
        MIT License
        
Keywords: BMP,matplotlib,scipy,numpy,PIL,image,bitmap
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 2 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires: numpy
Requires: PIL
