Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Namespaces | Functions
Image.hpp File Reference
#include <vlCore/String.hpp>
#include <vlCore/Buffer.hpp>
#include <vlCore/Vector4.hpp>
#include <vlCore/vlnamespace.hpp>
#include <vlCore/Rect.hpp>
#include <vlCore/KeyValues.hpp>
#include <vector>

Go to the source code of this file.

Classes

class  vl::Image
 Implements a generic 1d, 2d, 3d and cubemap image that can have mipmaps. More...
 

Namespaces

 vl
 Visualization Library main namespace.
 

Functions

ref< Imagevl::createCubemap (const Image *xp, const Image *xn, const Image *yp, const Image *yn, const Image *zp, const Image *zn)
 Assembles a cubemap image. More...
 
VLCORE_EXPORT ref< Imagevl::loadCubemap (const String &xp_file, const String &xn_file, const String &yp_file, const String &yn_file, const String &zp_file, const String &zn_file)
 Loads six images and assembles them into a cubemap image. More...
 
VLCORE_EXPORT ref< Imagevl::loadRAW (VirtualFile *file, long long file_offset, int width, int height, int depth, int bytealign, EImageFormat format, EImageType type)
 Loads a raw image file. More...
 
VLCORE_EXPORT ref< Imagevl::loadImage (VirtualFile *file)
 Loads an image from the specified file. More...
 
VLCORE_EXPORT ref< Imagevl::loadImage (const String &path)
 Loads an image from the specified path. More...
 
VLCORE_EXPORT bool vl::loadImagesFromDir (const String &dir_path, const String &ext, std::vector< ref< Image > > &images)
 Loads all the images with the specified extension from the given directory. More...
 
VLCORE_EXPORT ref< Imagevl::assemble3DImage (const std::vector< ref< Image > > &images)
 Assembles the given 2D images in a single 2D image, all the images must be 2D images and have the same size, format() and type(). More...
 
VLCORE_EXPORT bool vl::saveImage (Image *img, VirtualFile *file)
 Writes an image on the specified file. More...
 
VLCORE_EXPORT bool vl::saveImage (Image *img, const String &path)
 Writes an image on the specified path. More...
 
VLCORE_EXPORT ref< Imagevl::makeNonUniformColorSpectrum (size_t width, size_t col_count, const fvec4 *colors, const float *col_pos)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeNonUniformColorSpectrum (int width, const std::vector< fvec4 > &colors, const std::vector< float > &col_pos)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const std::vector< fvec4 > &colors)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const fvec4 &c0, const fvec4 &c1)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const fvec4 &c0, const fvec4 &c1, const fvec4 &c2)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const fvec4 &c0, const fvec4 &c1, const fvec4 &c2, const fvec4 &c3)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const fvec4 &c0, const fvec4 &c1, const fvec4 &c2, const fvec4 &c3, const fvec4 &c4)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...
 
VLCORE_EXPORT ref< Imagevl::makeColorSpectrum (size_t width, const fvec4 &c0, const fvec4 &c1, const fvec4 &c2, const fvec4 &c3, const fvec4 &c4, const fvec4 &c5)
 Creates a 1D Image whose color is interpolated from left to right from the specified spectrum. More...