Skip to content

A program that creates a data type that stores a b&w image and pixelated image

Notifications You must be signed in to change notification settings

palinaskakun/Monochrome-and-Pixelated-Image-Converter

Repository files navigation

Monochrome-and-Pixelated-Image-Converter

A program that creates a data type that stores a b&w image and pixelated image

Monochrome-and-Pixelated-Image-Converter

A program that creates a data type that stores a b&w image and pixelated image

The algorithm:

  • call create_image with the width and height of the image
  • call set_pixel for every pixel in the image to make them monochrome
  • call get_pixel for every pixel to read the monochrome value and save it
  • call destroy_image to free the allocated memory

How to execute the program:

./blocky sparty.png sparty-m.png

The original image: sparty The black and white image produced: bw The pixelated image produced: Screenshot 2023-03-23 at 2 16 01 AM

About

A program that creates a data type that stores a b&w image and pixelated image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published