Skip to content

Readme#22

Open
meganreardon wants to merge 78 commits intocodefellows-seattle-javascript-401d12:masterfrom
dbecker4130:readme
Open

Readme#22
meganreardon wants to merge 78 commits intocodefellows-seattle-javascript-401d12:masterfrom
dbecker4130:readme

Conversation

@meganreardon
Copy link
Copy Markdown

No description provided.

dbecker4130 and others added 30 commits December 9, 2016 09:28
helper and constructor skeleton complete
Needed to find the offset to the colors by checking the first int of
the dib header for the size of the dib header. Colors immediately
follow.
Constructor now accepts a buffer as a param.
Moved parse code to the constructor
We now store the buffer as a property in our
bitmaps. When you save a bitmap, it writes
this buffer back to the supplied filename.
NOTE: We currently have arrays for colors and
pixels, but changes to those arrays will not
alter the underlying buffer. We need to change
our implementation to deal with this.
Implemented save method in the helper
The constructor method was not ideal, because by creating
color and pixel arrays as properties, we were duplicating
that data in memory. Not only that, but it would increase
the complexity of the save operation to the point where
our helper would have to be a bit smarter. The goal is
to keep all the logic in the bitmap constructor file, and
use the buffer directly inside.
Moved buffer access into getter methods
I added a bunch of notes on how to implement the methods.
I was missing " = function" in my prototype method declarations.
More or less using the same logic that we have to read pixels.
I used an external tool to rotate the image and save it to this file.
The goal is for our transform to be able to match what my
image editor produced.
NOTE: Adding this to git, because it is a necessary test asset.
dbecker4130 and others added 30 commits December 12, 2016 12:10
Needed to check for non-array param, and arrays
with bunk pixel values.
Needed to get up to date with master.
 grayscale transform test added and passes test
Test that bitmap.transform() returns bitmap
Also added a test for new Bitmap() without a buf param.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants