create input BMPfile object

create input BMPfile object - (or however many you want to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
create input BMPfile object create output BMPfile object open input text file while not end of file on input text { read text byte for (i = 0; i < 15 ; i++) { loop 16 / (number of bits/pixel) getNextPixel from input BMPfile get colorValue of a pixel color AND color value with 11111110 to remove lowest bit
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (or however many you want to use) color value = color value OR (text byte & 1 or however many bits ) set pixel color put pixel in output file } } Copy remaining input BMPfile pixels (if any) to output BMPfile. close everything....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online