A container for Images managed by the ImageFactory.
More...
|
|
const String | m_id |
| | The unique string identifier for this image within the factory.
|
|
ImageFactory & | m_image_factory |
| | Reference to the owning ImageFactory managing this image's data.
|
A container for Images managed by the ImageFactory.
Provides convenience access functions without actually allocating memory outside of the factory.
Definition at line 503 of file ImageFactory.h.
◆ ImageData() [1/3]
Constructs an ImageData referencing a specific image in the given factory.
- Parameters
-
| [in] | id | The unique string identifier for the image. |
| [in] | image_factory | The ImageFactory that manages this image's data. |
Referenced by ImageData(), and ImageData().
◆ ImageData() [2/3]
| ImageData::ImageData |
( |
const ImageData & | data | ) |
|
◆ ImageData() [3/3]
| ImageData::ImageData |
( |
ImageData && | data | ) |
|
|
noexcept |
◆ compressionFormat()
Returns the compression format extension of this image's compressed data.
- Returns
- The format extension string (e.g., ".png"), or empty if unknown.
◆ getCompressed()
Retrieves the compressed data for this image in the specified format.
- Parameters
-
| [in] | default_image_format | The preferred compression format extension (e.g., ".png"). |
- Returns
- A read-locked pointer to the image cache data with populated compressed_data.
◆ getUncompressed()
Retrieves the uncompressed (raw ARGB) pixel data for this image from the factory.
- Returns
- A read-locked pointer to the image cache data with populated decompressed_data.
◆ modifiedTime()
| Time ImageData::modifiedTime |
( |
| ) |
const |
|
nodiscard |
Returns the last modification time of this image.
- Returns
- The modification time of the image.
◆ size()
Retrieves the image dimensions without fully decompressing the data.
- Returns
- A read-locked pointer to the image cache data with populated size field.
The documentation for this class was generated from the following file: