Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageEditor

This tool supports processing PNG images and applying various manipulations through multiple scripts. For example, ImageEditor allows you to apply grayscale effects, mirror images, crop them, and much more. My editor can also be used to convert PNG to XPM2 format.

How to use

    make all
    ./test <test> or ./test # run all tests

For example:

Input

reptiles

Test

./test h_mirror4 # Test horizontal mirror

Output

reptiles

Implementation and Features

Color

ImageEditor uses RGB color with 8 bits per channel.

Files

  • Color.hpp: Header file defining the Color class.
  • Color.cpp: Implementation of the Color class.

Image

To create an image, three variables are required: the width, height, and a color to fill all pixels (width × height).

Files

  • Image.hpp: Header file defining the Image class.
  • Image.cpp: Implementation of the Image class.

Script

Inside of the script file, contains various functions that can manipulate the image.

Files

  • Script.hpp: Header file defining the Script class.
  • Script.cpp: Implementation of the Script class.

About

This tool can edit some images and convert them to XPM2 format

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages