mirror of https://github.com/aseprite/aseprite.git
37 lines
762 B
C++
37 lines
762 B
C++
// Aseprite Render Library
|
|
// Copyright (c) 2019 Igara Studio S.A.
|
|
// Copyright (c) 2001-2017 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef RENDER_DITHERING_METHOD_H_INCLUDED
|
|
#define RENDER_DITHERING_METHOD_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace render {
|
|
|
|
// Dithering algorithms
|
|
enum class DitheringAlgorithm {
|
|
None,
|
|
Ordered,
|
|
Old,
|
|
FloydSteinberg,
|
|
JarvisJudiceNinke,
|
|
Stucki,
|
|
Atkinson,
|
|
Burkes,
|
|
Sierra,
|
|
Unknown
|
|
};
|
|
|
|
bool DitheringAlgorithmIsDiffusion(DitheringAlgorithm algo);
|
|
std::string DitheringAlgorithmToString(DitheringAlgorithm algo);
|
|
DitheringAlgorithm DitheringAlgorithmFromString(const std::string& name);
|
|
|
|
} // namespace render
|
|
|
|
#endif
|