VTK-m  2.2
EncodePNG.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_io_EncodePNG_h
11 #define vtk_m_io_EncodePNG_h
12 
13 #include <vtkm/Types.h>
14 #include <vtkm/io/vtkm_io_export.h>
15 
16 #include <vector>
17 
18 namespace vtkm
19 {
20 namespace io
21 {
22 
24 vtkm::UInt32 EncodePNG(std::vector<unsigned char> const& image,
25  unsigned long width,
26  unsigned long height,
27  unsigned char* out_png,
28  std::size_t out_size);
29 
31 vtkm::UInt32 SavePNG(std::string const& filename,
32  std::vector<unsigned char> const& image,
33  unsigned long width,
34  unsigned long height);
35 }
36 } // vtkm::io
37 
38 #endif //vtk_m_io_EncodePNG_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::io::EncodePNG
vtkm::UInt32 EncodePNG(std::vector< unsigned char > const &image, unsigned long width, unsigned long height, unsigned char *out_png, std::size_t out_size)
Types.h
vtkm_io_export.h
VTKM_IO_EXPORT
#define VTKM_IO_EXPORT
Definition: vtkm_io_export.h:44
vtkm::UInt32
uint32_t UInt32
Base type to use for 32-bit unsigned integer numbers.
Definition: Types.h:185
vtkm::io::SavePNG
vtkm::UInt32 SavePNG(std::string const &filename, std::vector< unsigned char > const &image, unsigned long width, unsigned long height)