pngpp/0.2.10

A C++ wrapper for libpng library.
Recipe info
2023-08-14

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
pngpp/0.2.10

Using pngpp

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
pngpp/0.2.10
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("pngpp/0.2.10")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): pngpp
  • CMake target name(s): pngpp::pngpp
  • pkg-config file name(s): pngpp.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(pngpp REQUIRED)
# ...
target_link_libraries(YOUR_TARGET pngpp::pngpp)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the pngpp homepage listed above:

#include "png++/color.hpp"
#include "png++/config.hpp"
#include "png++/consumer.hpp"
#include "png++/convert_color_space.hpp"
#include "png++/end_info.hpp"
#include "png++/error.hpp"
#include "png++/ga_pixel.hpp"
#include "png++/generator.hpp"
#include "png++/gray_pixel.hpp"
#include "png++/image.hpp"
#include "png++/image_info.hpp"
#include "png++/index_pixel.hpp"
#include "png++/info.hpp"
#include "png++/info_base.hpp"
#include "png++/io_base.hpp"
#include "png++/packed_pixel.hpp"
#include "png++/palette.hpp"
#include "png++/pixel_buffer.hpp"
#include "png++/pixel_traits.hpp"
#include "png++/png.hpp"
#include "png++/reader.hpp"
#include "png++/require_color_space.hpp"
#include "png++/rgb_pixel.hpp"
#include "png++/rgba_pixel.hpp"
#include "png++/solid_pixel_buffer.hpp"
#include "png++/streaming_base.hpp"
#include "png++/tRNS.hpp"
#include "png++/types.hpp"
#include "png++/writer.hpp"