Cleaning du main
This commit is contained in:
parent
0a5c105944
commit
ce56e38e2f
12
code/bmp.py
12
code/bmp.py
|
@ -9,19 +9,15 @@ from headerClass import *
|
||||||
import dep
|
import dep
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
tmp = ""
|
fileData = ""
|
||||||
content = ""
|
|
||||||
|
|
||||||
|
|
||||||
with open(sys.argv[1]) as f:
|
with open(sys.argv[1]) as f:
|
||||||
for byte in f.read():
|
for byte in f.read():
|
||||||
content += byte
|
fileData += byte
|
||||||
tmp += str( hex( ord(byte) ) )[2:] + ","
|
|
||||||
|
|
||||||
headerSize = 54
|
headerSize = 54
|
||||||
|
|
||||||
header = BMPHeader(content[0:headerSize])
|
header = BMPHeader( fileData[0:headerSize] )
|
||||||
content = tmp[headerSize:]
|
content = fileData[headerSize:]
|
||||||
|
|
||||||
print header.offset
|
print header.offset
|
||||||
print
|
print
|
||||||
|
|
Loading…
Reference in New Issue