Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

veneta13/PixMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FinalProject

Final Project for OOP course @FMI.

Run command:
g++ main.cpp src/binaryHandler.cpp src/command.cpp src/commandReader.cpp src/dithering.cpp src/ditheringGrayscale.cpp src/ditheringRGB.cpp src/executor.cpp src/fileManager.cpp src/handler.cpp src/image.cpp src/netpbm.cpp src/pbm.cpp src/pgm.cpp src/ppm.cpp src/textHandler.cpp src/validator.cpp src/baseHandler.cpp

Supported file formats:

  • PBM (ASCII, binary - with ASCII header)
  • PGM (ASCII, binary - with ASCII header)
  • PPM (ASCII, binary - with ASCII header)

Results

Supported commands:

exit

exits the program

 exit

save

saves in current location

 save

saveas

saves in a different location

 saveas "C:\Temp\another file.xml"

open

loads a new file

 open "C:\Temp\another file.xml"

close

closes current file

 close

new

creates a new file with a single color background

 new 1000 1000 #ffffff

resize

resizes an image to a percentage of its current size or to exact parameters

 resize 50
 resize 100 100

crop

crops the image by upper left and lower right corner coordinates

 crop 1 1 100 100

dither

dithers the image

 dither

Supported dithering algorithms:

  • Floyd-Steinberg
  • False Floyd-Steinberg
  • Jarvis, Judice, and Ninke
  • Stucki
  • Atkinson
  • Burkes
  • Sierra
  • Two-Row Sierra
  • Sierra Lite
  • 4x4 Bayer matrix
  • 8x8 Bayer matrix

About

Final Project for the OOP course @ FMI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages