An abstract base class that provides functionality for the Drawing::Bitmap class.
More...
#include <Image.h>
An abstract base class that provides functionality for the Drawing::Bitmap class.
- See also
-
◆ Image() [1/2]
PhWidgets::Drawing::Image::Image |
( |
const PhImage_t & |
image | ) |
|
(copy constructor)
Constructs an Image from PhImage_t.
- Parameters
-
[in] | image | PhImage_t to be used as source to initialize the elements of the container with. |
- Attention
- Image class makes copy of image provided so input PhImage_t remains untouched.
- See also
-
◆ Image() [2/2]
PhWidgets::Drawing::Image::Image |
( |
const Image & |
other | ) |
|
(copy constructor)
Constructs an Image by copy.
- Parameters
-
[in] | other | Another Image to be used as source to initialize the elements of the container with. |
- See also
-
◆ FromFile()
static Image PhWidgets::Drawing::Image::FromFile |
( |
std::string |
filename | ) |
|
|
static |
Creates an Image from the specified file.
- Parameters
-
[in] | filename | A string that contains the name of the file from which to create the Image. |
- Returns
- The Image this method creates.
- Exceptions
-
The file remains locked until the Image is disposed.
- Note
- The Image class does not support alpha transparency in bitmaps. To enable alpha transparency, use PNG images with 32 bits per pixel.
- See also
- Image::FromHbitmap()
- Image::FromStream()
◆ operator PhImage_t *()
PhWidgets::Drawing::Image::operator PhImage_t * |
( |
| ) |
const |
◆ Height
const unsigned short PhWidgets::Drawing::Image::Height |
Gets the height, in pixels, of this Image.
Property Value
unsigned short
The height, in pixels, of this Image.
- See also
-
◆ Size
const PhDim_t PhWidgets::Drawing::Image::Size |
Gets the width and height, in pixels, of this Image.
Property Value
PhDim_t
The PhDim_t
that represents the width and height, in pixels, of this image.
- See also
-
◆ Width
const unsigned short PhWidgets::Drawing::Image::Width |
Gets the width, in pixels, of this Image.
Property Value
unsigned short
The width, in pixels, of this Image.
- See also
-
The documentation for this class was generated from the following file: