set README.md

This commit is contained in:
xdrm-brackets 2015-09-06 14:54:58 +02:00
parent 2fd08bc16a
commit f8a377cbf6
8 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,2 @@
# bmp_python # bmp_python
Traitement d'image bmp en python Traitement d'image bmp en python
Test pull

BIN
blue.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

24
bmp.py Normal file
View File

@ -0,0 +1,24 @@
# ~*~ encoding: utf-8 ~*~ #
###########################
# TRAITEMENT D'IMAGES #
###########################
import dep
import sys
tmp = ""
header = ""
content = ""
with open(sys.argv[1]) as f:
for byte in f.read():
tmp += str( hex( ord(byte) ) )[2:] + ","
headerSize = ( 14 + 9 ) * 8
header = tmp[:headerSize]
content = tmp[headerSize:]
print header
print
print content

3
dep.py Normal file
View File

@ -0,0 +1,3 @@
# ~*~ encoding: utf-8 ~*~ #
###########################

BIN
dep.pyc Normal file

Binary file not shown.

BIN
green.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

BIN
red.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

BIN
test.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B