Skip to content

drimmovka/ImageEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageEditor

A library with basic image processing functionality.
Types of files that can be processed:

  • PNG
  • BMP

Сontent

Preliminary requirements

  • libpng
  • zlib

Installation

Quick installation

git clone https://github.com/KirillMaltsev3341/ImageEditor.git
cd ImageEditor
make install_required_soft
make

Manually installation

To install required software by yourself visit:

  • libpng (with a normal installation, zlib is automatically installed)
  • zlib
git clone https://github.com/KirillMaltsev3341/ImageEditor.git
cd ImageEditor
make

The shared library will be located in the lib folder and will have the name libImageEditor.so

Testing

make test

Example

#include "ImageEditor.h"

int main()
{
    ie::ImagePNG image;
    image.setSize(400, 400);

    image.drawCircle(200, 200, 120, 8, {255, 0, 0, 255}, true, {0, 0, 255, 255});
    
    image.drawPolygon(
        {
            {118, 120},
            {282, 120},
            {200, 314}
        }, 2, {255, 255, 255, 255}, true, {0, 255, 0, 255}
    );

    image.writeImageToFile("result.png");
}
g++ main.cpp -I{...}/ImageEditor/include -Wl,-rpath={...}/ImageEditor/lib -L{...}/ImageEditor/lib -lImageEditor

Result:
Image alt

Agreements

  1. The global discrete coordinates of a pixel are located in its center.
    Image alt

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages