# Visualization Library

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

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

# E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Image.hpp File Reference

`#include "vl/String.hpp"`
`#include "vl/GLBufferObject.hpp"`
`#include "vl/vlnamespace.hpp"`
`#include "vl/Rect.hpp"`
`#include "vl/KeyValues.hpp"`
`#include <vector>`

## 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::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.
ref< Image > | vl::loadRAW (VirtualFile *file, int width, int height, int depth, int bytealign, EImageFormat format, EImageType type)
| Loads a raw image file.
ref< Image > | vl::loadImage (VirtualFile *file)
| Loads an image from the specified file.
ref< Image > | vl::loadImage (const String &path)
| Loads an image from the specified path.
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.
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().
bool | vl::saveImage (Image *img, VirtualFile *file)
| Writes an image on the specified file.
bool | vl::saveImage (Image *img, const String &path)
| Writes an image on the specified path.

Visualization Library v2009.07 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Mon Aug 10 21:41:28 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.