#include
<kfbximageconverter.h>
Definition at line 62 of file kfbximageconverter.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 (KString pFilename) |
Set the original filename string. |
Constructor.
~ImageConverterBuffer | ( | ) |
Destructor.
bool IsValid | ( | ) | [inline] |
Check if this object is correctly initialized.
true
if the object has been initialized with
acceptable values.Definition at line 93 of file kfbximageconverter.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 line 98 of file kfbximageconverter.h.
int GetWidth | ( | ) | [inline] |
Get the width of the image.
Definition at line 103 of file kfbximageconverter.h.
int GetHeight | ( | ) | [inline] |
Get the height of the image.
Definition at line 108 of file kfbximageconverter.h.
int GetColorSpace | ( | ) | [inline] |
Get the color space of the image.
Definition at line 113 of file kfbximageconverter.h.
char GetPixelSize | ( | ) | [inline] |
Get the number of bytes per pixel.
Definition at line 118 of file kfbximageconverter.h.
kByte* GetData | ( | ) | [inline] |
Get access to the image data.
Definition at line 123 of file kfbximageconverter.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 line 128 of file kfbximageconverter.h.
KString GetOriginalFileName | ( | ) | [inline] |
Get the original filename of the image file before conversion.
Definition at line 136 of file kfbximageconverter.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 to true 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. |