#include <Image.h>

Public Member Functions | |
| virtual | ~Image () |
| virtual unsigned char * | getBits ()=0 |
| virtual unsigned char * | getBitsOffset (int offset) |
| virtual unsigned char * | getBitsPos (int x, int y) |
| virtual int | getWidth ()=0 |
| virtual int | getHeight ()=0 |
| virtual void | removeOwnership ()=0 |
| virtual int | getAlignment ()=0 |
| virtual int | getComponents ()=0 |
| virtual bool | writeToFile (const std::string &filename) |
| ImageHandle | createAlphaMult (float mult) |
| ImageHandle | createResize (int newWidth, int newHeight) |
Definition at line 27 of file Image.h.
| virtual unsigned char* Image::getBits | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
Referenced by TankMenus::AccessoryMenu::AccessoryMenu(), ImageModifier::addBitmap(), ImageModifier::addCircle(), ImageModifier::addHeightToBitmap(), ImageModifier::addLightMapToBitmap(), ImageModifier::addTexturesToBitmap(), ImageModifier::addWaterToBitmap(), GLTextureCubeMap::create(), GLTexture::create(), createAlphaMult(), createResize(), DeformTextures::deformLandscape(), GLWBitmap::draw(), Hemisphere::drawColored(), getBitsOffset(), getBitsPos(), GLWWindowManager::GLWWindowManager(), HelpButtonDialog::HelpMenu::HelpMenu(), ImageItterator::incY(), MovementMap::limitTexture(), HeightMapLoader::loadTerrain(), TextureStore::loadTexture(), MainCamera::MainCamera(), ImageModifier::makeBitmapTransparent(), MovementMap::movementTexture(), HelpButtonDialog::PerformanceMenu::PerformanceMenu(), PlacementTankPosition::placeTank(), TankMenus::PlayerMenu::PlayerMenu(), ComsSyncCheckMessage::readMessage(), ImageModifier::redBitmap(), ImageModifier::removeWaterFromBitmap(), GLTexture::replace(), ImageItterator::reset(), ImageModifier::scalePlanBitmap(), InfoMap::showGrid(), InfoMap::showHeightBands(), tankMaskCloseness(), ImageModifier::tileBitmap(), HelpButtonDialog::VolumeMenu::VolumeMenu(), and writeToFile().
| unsigned char * Image::getBitsOffset | ( | int | offset | ) | [virtual] |
Definition at line 39 of file Image.cpp.
References DIALOG_ASSERT, getBits(), getComponents(), getHeight(), and getWidth().
Referenced by ImageModifier::addBorderToBitmap().
| unsigned char * Image::getBitsPos | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Definition at line 33 of file Image.cpp.
References DIALOG_ASSERT, getBits(), getComponents(), getHeight(), and getWidth().
| virtual int Image::getWidth | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
Referenced by ImageModifier::addBitmap(), ImageModifier::addBitmapToLandscape(), ImageModifier::addBorderToBitmap(), ImageModifier::addCircle(), ImageModifier::addCircleToLandscape(), ImageModifier::addHeightToBitmap(), ImageModifier::addLightMapToBitmap(), ImageModifier::addTexturesToBitmap(), ImageModifier::addWaterToBitmap(), GLTextureCubeMap::create(), GLTexture::create(), createAlphaMult(), createResize(), DeformTextures::deformLandscape(), GLWBitmap::draw(), Hemisphere::drawColored(), getBitsOffset(), getBitsPos(), ImageItterator::ImageItterator(), ImageItterator::incX(), HeightMapLoader::loadTerrain(), TextureStore::loadTexture(), ImageModifier::makeBitmapTransparent(), ImageModifier::redBitmap(), ImageModifier::removeWaterFromBitmap(), GLTexture::replace(), ImageModifier::scalePlanBitmap(), InfoMap::showHeightBands(), tankMaskCloseness(), ImageModifier::tileBitmap(), and writeToFile().
| virtual int Image::getHeight | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
Referenced by ImageModifier::addBitmap(), ImageModifier::addBitmapToLandscape(), ImageModifier::addBorderToBitmap(), ImageModifier::addCircle(), ImageModifier::addCircleToLandscape(), ImageModifier::addHeightToBitmap(), ImageModifier::addLightMapToBitmap(), ImageModifier::addTexturesToBitmap(), ImageModifier::addWaterToBitmap(), GLTextureCubeMap::create(), GLTexture::create(), createAlphaMult(), createResize(), DeformTextures::deformLandscape(), GLWBitmap::draw(), Hemisphere::drawColored(), getBitsOffset(), getBitsPos(), ImageItterator::ImageItterator(), ImageItterator::incY(), HeightMapLoader::loadTerrain(), TextureStore::loadTexture(), ImageModifier::makeBitmapTransparent(), ImageModifier::redBitmap(), ImageModifier::removeWaterFromBitmap(), GLTexture::replace(), ImageModifier::scalePlanBitmap(), InfoMap::showHeightBands(), tankMaskCloseness(), ImageModifier::tileBitmap(), and writeToFile().
| virtual void Image::removeOwnership | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
| virtual int Image::getAlignment | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
Referenced by GLTextureCubeMap::create(), and GLTexture::create().
| virtual int Image::getComponents | ( | ) | [pure virtual] |
Implemented in ImageBitmap, ImageHandle, ImageJpg, ImageLuminance, and ImagePng.
Referenced by ImageModifier::addBitmap(), ImageModifier::addBorderToBitmap(), GLTextureCubeMap::create(), GLTexture::create(), createAlphaMult(), createResize(), Hemisphere::drawColored(), getBitsOffset(), getBitsPos(), GLTexture::replace(), ImageModifier::scalePlanBitmap(), and writeToFile().
| bool Image::writeToFile | ( | const std::string & | filename | ) | [virtual] |
Definition at line 45 of file Image.cpp.
References from, getBits(), getComponents(), getHeight(), and getWidth().
Referenced by Landscape::savePlan().
| ImageHandle Image::createAlphaMult | ( | float | mult | ) |
Definition at line 100 of file Image.cpp.
References ImageFactory::createBlank(), ImageHandle::getBits(), getBits(), getComponents(), getHeight(), getWidth(), MAX, and MIN.
| ImageHandle Image::createResize | ( | int | newWidth, | |
| int | newHeight | |||
| ) |
Definition at line 126 of file Image.cpp.
References ImageFactory::createBlank(), S3D::dialogExit(), error(), ImageHandle::getBits(), getBits(), getComponents(), ImageHandle::getComponents(), getHeight(), getWidth(), GL_RGB, GL_RGBA, GL_UNSIGNED_BYTE, and ImageHandle::setBits().
Referenced by BackdropDialog::drawBackground(), Water2Renderer::generate(), ImageModifier::scalePlanBitmap(), and ProgressDialog::setIcon().
1.5.3