libigl v2.5.0
Loading...
Searching...
No Matches
write_image.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2016 Daniele Panozzo <daniele.panozzo@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_STB_WRITE_IMAGE_H
9#define IGL_STB_WRITE_IMAGE_H
10#include "../igl_inline.h"
11#include <Eigen/Core>
12#include <string>
13
14namespace igl
15{
16 namespace stb
17 {
36 (
37 const std::string image_file,
38 const Eigen::Matrix<unsigned char,Eigen::Dynamic,Eigen::Dynamic>& R,
39 const Eigen::Matrix<unsigned char,Eigen::Dynamic,Eigen::Dynamic>& G,
40 const Eigen::Matrix<unsigned char,Eigen::Dynamic,Eigen::Dynamic>& B,
41 const Eigen::Matrix<unsigned char,Eigen::Dynamic,Eigen::Dynamic>& A,
42 const int quality=90
43 );
54 const std::string image_file,
55 const int width,
56 const int height,
57 const unsigned char * rgba_data,
58 const int quality = 90);
59
60 }
61}
62
63#ifndef IGL_STATIC_LIBRARY
64# include "write_image.cpp"
65#endif
66
67#endif
#define IGL_INLINE
Definition igl_inline.h:15
bool write_image(const std::string image_file, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &R, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &G, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &B, const Eigen::Matrix< unsigned char, Eigen::Dynamic, Eigen::Dynamic > &A, const int quality=90)
Writes an image to a file.
Definition AABB.h:17