#include<kfbximageconverter.h>
Definition at line69of filekfbximageconverter.h.
Constructor and Destructor. | |
ImageConverterBuffer() | |
Constructor. | |
~ImageConverterBuffer() | |
Destructor. | |
Public Member Functions | |
bool | IsValid() |
Check if this object is correctly initialized. | |
bool | UseDataBuffer() |
Tells where the data to use is located. | |
int | GetWidth() |
Get the width of the image. | |
int | GetHeight() |
Get the height of the image. | |
int | GetColorSpace() |
Get the color space of the image. | |
char | GetPixelSize() |
Get the number of bytes per pixel. | |
kByte * | GetData() |
Get access to the image data. | |
bool | GetOriginalFormat() |
Tells if the image has not been converted from its original format. | |
KString | GetOriginalFileName() |
Get the original filename of the image file before conversion. | |
void | Init(int pWidth, int pHeight, bool pUseDataBuffer, int pColorSpace=ColorSpaceRGB, char pPixelSize=4) |
Initialize the object. | |
void | SetOriginalFormat(bool pState) |
Set the original format flag. | |
void | SetOriginalFileName(KStringpFilename) |
Set the original filename string. |
Constructor.
Destructor.
bool IsValid | ( | ) | [inline] |
Check if this object is correctly initialized.
true
if the object has been initialized with acceptable values.Definition at line100of filekfbximageconverter.h.
bool UseDataBuffer | ( | ) | [inline] |
Tells where the data to use is located.
true
if the data is in the allocated memory buffer.false
if the data is from an external file on disk.Definition at line105of filekfbximageconverter.h.
int GetWidth | ( | ) | [inline] |
Get the width of the image.
Definition at line110of filekfbximageconverter.h.
int GetHeight | ( | ) | [inline] |
Get the height of the image.
Definition at line115of filekfbximageconverter.h.
int GetColorSpace | ( | ) | [inline] |
Get the color space of the image.
Definition at line120of filekfbximageconverter.h.
char GetPixelSize | ( | ) | [inline] |
Get the number of bytes per pixel.
Definition at line125of filekfbximageconverter.h.
kByte* GetData | ( | ) | [inline] |
Get access to the image data.
Definition at line130of filekfbximageconverter.h.
bool GetOriginalFormat | ( | ) | [inline] |
Tells if the image has not been converted from its original format.
true
if the image is stored in its original format,false
if the image has been converted.Definition at line135of filekfbximageconverter.h.
KStringGetOriginalFileName | ( | ) | [inline] |
Get the original filename of the image file before conversion.
Definition at line143of filekfbximageconverter.h.
void Init | ( | int | pWidth, | |
int | pHeight, | |||
bool | pUseDataBuffer, | |||
int | pColorSpace=ColorSpaceRGB , | |||
char | pPixelSize=4 | |||
) |
Initialize the object.
pWidth | Image width. | |
pHeight | Image height. | |
pUseDataBuffer | Set totrue if the image buffer needs to be allocated. | |
pColorSpace | The image color space. | |
pPixelSize | The number of bytes per pixel. |
true
) is: total = pWidth * pHeight * pPixelSizevoid SetOriginalFormat | ( | bool | pState | ) |
Set the original format flag.
pState | The value of the original format flag. |
void SetOriginalFileName | ( | KString | pFilename | ) |
Set the original filename string.
pFilename | The filename to use. |