Skip to content

Commit a03e62c

Browse files
authored
Update __init__.py
1 parent 72b6249 commit a03e62c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bitmap/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def getRawPixelData(self):
210210

211211
def getPixels(self):
212212
"""Convert the raw pixels to an X Y grid system"""
213-
array = np.array(list(self.raw[54:]))
213+
array = np.array(list(self.raw[Image(self.raw).__getBytesAwayFromColorTable():]))
214214
grid = array.reshape(-1, Image.getBitmapWidth(self), 3)
215215
self.grid = grid.tolist()
216216
return grid.tolist()
@@ -228,6 +228,9 @@ def reform(self):
228228
entire.append(k)
229229
return bytes(entire)
230230

231+
def create(self):
232+
233+
pass
231234

232235

233236

0 commit comments

Comments
 (0)