# Visualization Library

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

[Home] [Tutorials] [All Classes] [Grouped Classes]

Classes | Namespaces | Functions

# D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/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

namespace | vl

| Visualization Library namespace.

## Functions

ref< Image > | vl::createCubemap (const Image *xp, const Image *xn, const Image *yp, const Image *yn, const Image *zp, const Image *zn)
| Assembles a cubemap image.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::loadRAW (VirtualFile *file, long long file_offset, int width, int height, int depth, int bytealign, EImageFormat format, EImageType type)
| Loads a raw image file.
VLCORE_EXPORT ref< Image > | vl::loadImage (VirtualFile *file)
| Loads an image from the specified file.
VLCORE_EXPORT ref< Image > | vl::loadImage (const String &path)
| Loads an image from the specified path.
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.
VLCORE_EXPORT ref< Image > | vl::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().
VLCORE_EXPORT bool | vl::saveImage (Image *img, VirtualFile *file)
| Writes an image on the specified file.
VLCORE_EXPORT bool | vl::saveImage (Image *img, const String &path)
| Writes an image on the specified path.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.
VLCORE_EXPORT ref< Image > | vl::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.

Visualization Library v2011.09.1162 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu Jan 26 2012 00:43:48.
Permission is granted to use this page to write and publish articles regarding Visualization Library.