VTK-m  2.0
Namespaces | Functions
DecodePNG.h File Reference
#include <vtkm/Types.h>
#include <vtkm/io/vtkm_io_export.h>
#include <vector>

Go to the source code of this file.

Namespaces

 vtkm
 Groups connected points that have the same field value.
 
 vtkm::io
 VTK-m File input and output classes.
 

Functions

VTKM_IO_EXPORT vtkm::UInt32 vtkm::io::DecodePNG (std::vector< unsigned char > &out_image, unsigned long &image_width, unsigned long &image_height, const unsigned char *in_png, std::size_t in_size)
 Decodes a PNG file buffer in memory, into a raw pixel buffer Output is RGBA 32-bit (8 bit per channel) color format no matter what color type the original PNG image had. More...