#include <VisualImage.h>
Inherits VizKit::VisualObject.
List of all members.
Detailed Description
Bitmap raster image.
Constructor & Destructor Documentation
| VisualImage::VisualImage |
( |
|
) |
|
| VisualImage::~VisualImage |
( |
|
) |
|
Copy constructor.
- Parameters:
-
Member Function Documentation
Applies a convolution filter to the image.
- Parameters:
-
| aConvolutionFilter | The convolution filter to apply to the image. |
| VisualImage * VisualImage::clone |
( |
void |
|
) |
const [virtual] |
| VisualImage * VisualImage::cloneIndependently |
( |
void |
|
) |
const |
Creates an independent copy of the image.
| void VisualImage::copy |
( |
const VisualImage & |
other |
) |
[private] |
Copy method for assignment operator and copy constructor.
- Parameters:
-
| void VisualImage::createHistogram |
( |
void |
|
) |
|
Creates a histogram of RGB pixel color values. A histogram contains the salient color values of the image.
Creates an image with a buffer of ARGB pixel data.
- Parameters:
-
| argbPixels | Pointer to ARGB pixel data. |
| width | The width of the pixel data. |
| height | The height of the pixel data. |
- Returns:
- Initialized instance of VisualImage. NULL in case of failure.
| VisualImage * VisualImage::createWithEncodedData |
( |
const char *const |
bufferData, |
|
|
uint32 |
size | |
|
) |
| | [static] |
Creates an image with a data pointer to encoded image data.
- Parameters:
-
| bufferData | A pointer to the data. |
| size | The size of the data pointed to in bytes. |
- Returns:
- Initialized instance of VisualImage. NULL in case of failure.
Creates an image with a file.
- Parameters:
-
| aFile | Reference to a file. |
- Returns:
- Initialized instance of VisualImage. NULL in case of failure.
Creates an image with contents of the current screen (framebuffer).
- Parameters:
-
| clipRect | The dimensions and position of the clip rect. |
Creates an image with a styled string.
- Parameters:
-
| styledString | The styled string to convert into bitmap image. |
- Returns:
- Initialized instance of VisualImage. NULL in case of failure.
Creates an image with an URL.
- Parameters:
-
| anURL | URL of the image. |
| anId | Identifier that can be queried to track the progress of this asynchronous creation. |
- Returns:
- Initialized instance of VisualImage.
Notification that the loading of data ended.
- Parameters:
-
| identifier | The identifier of the data load request. |
Reimplemented from VizKit::VisualObject.
| void VisualImage::draw |
( |
const VertexChain *const |
aVertexChain, |
|
|
bool |
debug = false | |
|
) |
| | |
Draws the image.
- Parameters:
-
| aVertexChain | The chain of vertices with which the image is drawn. |
| debug | If true, details of the drawing operation can be traced for diagnostical purposes. |
| BlendMode VisualImage::getBlendMode |
( |
void |
|
) |
const |
Returns the blend mode of the image.
- Returns:
- The blend mode of the image.
| uint32 VisualImage::getHeight |
( |
void |
|
) |
const |
Returns the height of the bitmap image (in pixels).
- Returns:
- The height of the bitmap image (in pixels).
Returns the internal histogram.
- Returns:
- The histogram. Can be NULL in case no histogram has been set.
| double VisualImage::getLogicalHeight |
( |
void |
|
) |
const |
Returns the logical height of the texture.
- Returns:
- The logical height of the texture.
| double VisualImage::getLogicalWidth |
( |
void |
|
) |
const |
Returns the logical width of the texture.
- Returns:
- The logical width of the texture.
| void VisualImage::getRGBHistogramInputPixels |
( |
std::vector< PixelColor > & |
inputValues |
) |
const [private] |
Returns the array of RGB color pixels as required to create a histogram.
- Parameters:
-
| [out] | inputValues | The pixels that can be used as input for histogram creation. |
Returns a pointer to the texture container of the image.
- Returns:
- A pointer to the texture container of the image.
| uint32 VisualImage::getWidth |
( |
void |
|
) |
const |
Returns the width of the bitmap image (in pixels).
- Returns:
- The width of the bitmap image (in pixels).
Initializes the image with a buffer of ARGB pixel data.
- Parameters:
-
| argbPixels | Pointer to ARGB pixel data. |
| width | The width of the pixel data. |
| height | The height of the pixel data. |
- Returns:
- True on succes, false on failure.
| bool VisualImage::initWithEncodedData |
( |
const char *const |
bufferData, |
|
|
size_t |
size | |
|
) |
| | |
Initializes the image with a data pointer to encoded image data.
- Parameters:
-
| bufferData | A pointer to the data. |
| size | The size of the data pointed to in bytes. |
- Returns:
- True on success, false on failure.
| bool VisualImage::initWithFile |
( |
VisualFile & |
aFile |
) |
|
Initializes the image with a file.
- Parameters:
-
| aFile | Reference to a file. |
- Returns:
- True on success, false on failure.
Initializes the image with contents of the current screen (framebuffer).
- Parameters:
-
| clipRect | The dimensions and position of the clip rect. |
- Returns:
- True on success, false on failure.
| bool VisualImage::initWithLoadedEncodedData |
( |
void |
|
) |
|
Initializes the image with loaded encoded image data.
- Returns:
- True on success, false on failure.
Initializes the image with a styled string.
- Parameters:
-
| styledString | The styled string to convert into bitmap image. |
- Returns:
- True on success, false on failure
Initializes the image with an URL.
- Parameters:
-
| anURL | URL of the image. |
| anId | Identifier that can be queried to track the progress of this asynchronous initialization. |
- Returns:
- True on success, false on failure.
| bool VisualImage::isEmpty |
( |
void |
|
) |
const |
Answers the question whether the image is empty or set.
Assignment operator.
- Parameters:
-
| void VisualImage::resample |
( |
const PixelRect & |
pixelRect |
) |
|
Resamples the pixel data of the texture to the given dimensions of the pixelRect.
- Parameters:
-
| pixelRect | The resampling dimensions. |
| void VisualImage::setBlendMode |
( |
BlendMode |
aBlendMode |
) |
|
Sets the blend mode of the image.
- Parameters:
-
| aBlendMode | The blend mode of the image. |
| bool VisualImage::writeToPNGFile |
( |
VisualFile & |
aVisualFile |
) |
const |
Writes the image as PNG encoded data to a file on disk.
- Parameters:
-
| aVisualFile | Access to file the image is to be written into. |
- Returns:
- True on success, false on failure.
| void VisualImage::writeToPNGFileAsync |
( |
VisualFile & |
aVisualFile |
) |
|
Writes the image as PNG encoded data to a file on disk asynchronously.
- Parameters:
-
| aVisualFile | Access to file the image is to be written into. |
| void VisualImage::writeToPNGFileAsyncAndDelete |
( |
VisualFile & |
aVisualFile |
) |
|
Writes the image as PNG encoded data to a file on disk asynchronously and deletes the VisualImage afterwards.
- Parameters:
-
| aVisualFile | Access to file the image is to be written into. |
Member Data Documentation
The blend mode of the image.
Creates a histogram of RGB pixel color values.
- Parameters:
-
| visualImageHistogramPixelColors | Pixel color values and pointer to image. Histogram. |
True if image has been set. False if image is not valid or has not been set yet.
The documentation for this class was generated from the following files: