The ImageKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
ImageKit () | |
The default constructor creates an empty ImageKit object. More... | |
ImageKit (ImageKit const &in_kit) | |
The copy constructor creates a new ImageKit object that contains the same settings as the source ImageKit. More... | |
ImageKit (ImageKit const &in_kit, HPS::Image::Format in_format) | |
This constructor creates a new ImageKit object that contains the same settings as the source ImageKit but converts it to the specified format. More... | |
ImageKit (ImageKit &&in_that) | |
The move constructor creates an ImageKit by transferring the underlying impl of the rvalue reference to this ImageKit thereby avoiding a copy and allocation. More... | |
ImageKit & | operator= (ImageKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ImageKit thereby avoiding a copy. More... | |
virtual | ~ImageKit () |
HPS::Type | ObjectType () const |
void | Set (ImageKit const &in_kit) |
Copies the source ImageKit into this ImageKit. More... | |
void | Show (ImageKit &out_kit) const |
Copies this ImageKit into the given ImageKit. More... | |
ImageKit & | operator= (ImageKit const &in_kit) |
Copies the source ImageKit into this ImageKit. More... | |
bool | Empty () const |
Indicates whether this ImageKit has any values set on it. More... | |
bool | Equals (ImageKit const &in_kit) const |
Check if the source ImageKit is equivalent to this ImageKit. More... | |
bool | operator== (ImageKit const &in_kit) const |
Check if the source ImageKit is equivalent to this ImageKit. More... | |
bool | operator!= (ImageKit const &in_kit) const |
Check if the source ImageKit is not equivalent to this ImageKit. More... | |
void | Convert (ImageKit const &in_kit, HPS::Image::Format in_format) |
Copies the source ImageKit into this ImageKit but converts it to the specified format. More... | |
void | Convert (HPS::Image::Format in_format) |
Converts this ImageKit to the specified format. More... | |
ImageKit & | SetSize (unsigned int in_width, unsigned int in_height) |
Sets the width and height (in pixels) of the image. More... | |
ImageKit & | SetData (ByteArray const &in_image_data) |
Sets the data for the image. More... | |
ImageKit & | SetData (size_t in_byte_count, byte const in_image_data []) |
Sets the data for the image. More... | |
ImageKit & | SetFormat (Image::Format in_format) |
Sets the format of the image. More... | |
ImageKit & | SetDownSampling (bool in_state) |
Sets the whether to down-sample the image. More... | |
ImageKit & | SetCompressionQuality (float in_quality) |
Sets the compression quality for the image. More... | |
ImageKit & | UnsetSize () |
Removes the width and height of the image. More... | |
ImageKit & | UnsetData () |
Removes the data for the image. More... | |
ImageKit & | UnsetFormat () |
Removes the format of the image. More... | |
ImageKit & | UnsetDownSampling () |
Removes whether to down-sample the image. More... | |
ImageKit & | UnsetCompressionQuality () |
Removes the compression quality for the image. More... | |
ImageKit & | UnsetEverything () |
Removes all settings from this ImageKit. More... | |
bool | ShowSize (unsigned int &out_width, unsigned int &out_height) const |
Shows the width and height (in pixels) of the image. More... | |
bool | ShowData (ByteArray &out_image_data) const |
Shows the data for the image. More... | |
bool | ShowFormat (Image::Format &out_format) const |
Shows the format of the image. More... | |
bool | ShowDownSampling (bool &out_state) const |
Shows whether to down-sample the image. More... | |
bool | ShowCompressionQuality (float &out_quality) const |
Shows the compression quality for the image. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::ImageKit |
The ImageKit class is a user space object.
It is used for specifying all data associated with images.
HPS::ImageKit::ImageKit | ( | ) |
The default constructor creates an empty ImageKit object.
HPS::ImageKit::ImageKit | ( | ImageKit const & | in_kit | ) |
HPS::ImageKit::ImageKit | ( | ImageKit const & | in_kit, |
HPS::Image::Format | in_format | ||
) |
HPS::ImageKit::ImageKit | ( | ImageKit && | in_that | ) |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
void HPS::ImageKit::Convert | ( | ImageKit const & | in_kit, |
HPS::Image::Format | in_format | ||
) |
void HPS::ImageKit::Convert | ( | HPS::Image::Format | in_format | ) |
|
virtual |
Indicates whether this ImageKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::ImageKit::Equals | ( | ImageKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::ImageKit::operator!= | ( | ImageKit const & | in_kit | ) | const |
bool HPS::ImageKit::operator== | ( | ImageKit const & | in_kit | ) | const |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::ImageKit::Set | ( | ImageKit const & | in_kit | ) |
ImageKit& HPS::ImageKit::SetCompressionQuality | ( | float | in_quality | ) |
Sets the compression quality for the image.
Values range from highest compression and poorest quality (0) to no compression and full quality (1).
in_quality | The compression quality for the image, a floating point value between 0 and 1. |
Sets the data for the image.
in_image_data | The array of data for the image. |
Sets the data for the image.
in_byte_count | The size of the following array. |
in_image_data | The array of data for the image. |
ImageKit& HPS::ImageKit::SetDownSampling | ( | bool | in_state | ) |
Sets the whether to down-sample the image.
in_state | Whether to down-sample the image. |
ImageKit& HPS::ImageKit::SetFormat | ( | Image::Format | in_format | ) |
Sets the format of the image.
in_format | The format of the image. |
ImageKit& HPS::ImageKit::SetSize | ( | unsigned int | in_width, |
unsigned int | in_height | ||
) |
Sets the width and height (in pixels) of the image.
in_width | The width (in pixels) of the image. |
in_height | The height (in pixels) of the image. |
void HPS::ImageKit::Show | ( | ImageKit & | out_kit | ) | const |
bool HPS::ImageKit::ShowCompressionQuality | ( | float & | out_quality | ) | const |
Shows the compression quality for the image.
out_quality | The compression quality for the image. |
bool HPS::ImageKit::ShowData | ( | ByteArray & | out_image_data | ) | const |
Shows the data for the image.
out_image_data | The array of data for the image. |
bool HPS::ImageKit::ShowDownSampling | ( | bool & | out_state | ) | const |
Shows whether to down-sample the image.
out_state | whether to down-sample the image. |
bool HPS::ImageKit::ShowFormat | ( | Image::Format & | out_format | ) | const |
Shows the format of the image.
out_format | The format of the image. |
bool HPS::ImageKit::ShowSize | ( | unsigned int & | out_width, |
unsigned int & | out_height | ||
) | const |
Shows the width and height (in pixels) of the image.
out_width | The width (in pixels) of the image. |
out_height | The height (in pixels) of the image. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
ImageKit& HPS::ImageKit::UnsetCompressionQuality | ( | ) |
Removes the compression quality for the image.
ImageKit& HPS::ImageKit::UnsetData | ( | ) |
Removes the data for the image.
ImageKit& HPS::ImageKit::UnsetDownSampling | ( | ) |
Removes whether to down-sample the image.
ImageKit& HPS::ImageKit::UnsetEverything | ( | ) |
ImageKit& HPS::ImageKit::UnsetFormat | ( | ) |
Removes the format of the image.
ImageKit& HPS::ImageKit::UnsetSize | ( | ) |
Removes the width and height of the image.
|
static |