set README.md
This commit is contained in:
parent
2fd08bc16a
commit
f8a377cbf6
|
@ -1,4 +1,2 @@
|
||||||
# bmp_python
|
# bmp_python
|
||||||
Traitement d'image bmp en python
|
Traitement d'image bmp en python
|
||||||
|
|
||||||
Test pull
|
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
# ~*~ encoding: utf-8 ~*~ #
|
||||||
|
###########################
|
||||||
|
|
Loading…
Reference in New Issue