An abstract base class that provides functionality for the bitmap and metafile descended classes.
Fields | |
| static image | empty |
| Represent an empty xtd::drawing::image. More... | |
Properties | |
| int32 | flags () const noexcept |
| Gets attribute flags for the pixel data of this xtd::drawing::image. More... | |
| std::vector< guid > | frame_dimentions_list () const noexcept |
| Gets an array of GUIDs that represent the dimensions of frames within this image. More... | |
| intptr | handle () const noexcept |
| Gets the handle of this image. More... | |
| int32 | height () const noexcept |
| Gets the height, in pixels, of this image. More... | |
| float | horizontal_resolution () const noexcept |
| Gets the horizontal resolution, in pixels per inch, of this image. More... | |
| imaging::color_palette | palette () const noexcept |
| Gets the color palette used for this image. More... | |
| void | palette (const imaging::color_palette &palette) noexcept |
| Sets the color palette used for this image. More... | |
| const size_f & | physical_dimension () const noexcept |
| Gets the width and height of this image. More... | |
| imaging::pixel_format | pixel_format () const noexcept |
| Gets the pixel format for this image. More... | |
| const std::vector< int32 > & | property_id_list () const noexcept |
| Gets IDs of the property items stored in this image. More... | |
| const std::vector< imaging::property_item > & | property_items () const noexcept |
| Gets all the property items (pieces of metadata) stored in this image. More... | |
| const imaging::image_format & | raw_format () const noexcept |
| Gets the file format of this image. More... | |
| const drawing::size & | size () const noexcept |
| Gets the width and height, in pixels, of this image. More... | |
| const std::any & | tag () const noexcept |
| Gets an object that provides additional data about the image. More... | |
| void | tag (const std::any &tag) noexcept |
| Sets an object that provides additional data about the image. More... | |
| float | vertical_resolution () const noexcept |
| Gets the vertical resolution, in pixels per inch, of this image. More... | |
| int32 | width () const noexcept |
| Gets the width, in pixels, of this image. More... | |
Methods | |
| image | blur (int32 radius) const |
| Blurs the image whith the specified radius. More... | |
| graphics | create_graphics () |
| Creates the xtd::drawing::graphics for the image. More... | |
| bool | equals (const image &image) const noexcept override |
| xtd::drawing::rectangle_f | get_bounds (xtd::drawing::graphics_unit page_unit) const noexcept |
| Gets the bounds of the image in the specified unit. More... | |
| xtd::drawing::imaging::encoder_parameters | get_encoder_parameter_list (xtd::guid encoder) const noexcept |
| Returns information about the parameters supported by the specified image encoder. More... | |
| size_t | get_frame_count (const xtd::drawing::imaging::frame_dimension &dimension) const |
| Returns the number of frames of the specified dimension. More... | |
| xtd::drawing::imaging::property_item | get_property_item (int32 propid) |
| Gets the specified property item from this xtd::drawing::image. More... | |
| xtd::drawing::image | get_thmbnail_image (int32 thumb_width, int32 thunb_height) noexcept |
| Returns a thumbnail for this xtd::drawing::image. More... | |
| void | rotate_flip (xtd::drawing::rotate_flip_type rotate_flip_type) |
| Rotates, flips, or rotates and flips the xtd::drawing::image. More... | |
| void | save (const xtd::ustring &filename) const |
| Saves this xtd::drawing::image to the specified file or stream. More... | |
| void | save (const xtd::ustring &filename, const xtd::drawing::imaging::image_format &format) const |
| Saves this xtd::drawing::image to the specified file in the specified format. More... | |
| void | save (std::ostream &stream, const xtd::drawing::imaging::image_format &format) const |
| Saves this image to the specified stream in the specified format. More... | |
| static image | from_file (const xtd::ustring &filename) |
| Creates an image from the specified file. More... | |
| static bitmap | from_hbitmap (intptr hbitmap) |
| Creates a xtd::drawing::bitmap from a handle to a GDI bitmap. More... | |
| static image | from_stream (std::istream &stream) |
| Creates an xtd::drawing::image from the specified data stream. More... | |
| static image | from_data (const char *const *bits) |
| Creates an xtd::drawing::image from the specified data pointer. More... | |
| static int32 | get_pixel_format_size (xtd::drawing::imaging::pixel_format pixfmt) noexcept |
| Returns the color depth, in number of bits per pixel, of the specified pixel format. More... | |
| static bool | is_alpha_pixel_format (xtd::drawing::imaging::pixel_format pixfmt) noexcept |
| Returns a value that indicates whether the pixel format for this xtd::drawing::image contains alpha information. More... | |
| static bool | is_canonical_pixel_format (xtd::drawing::imaging::pixel_format pixfmt) noexcept |
| Returns a value that indicates whether the pixel format is 32 bits per pixel. More... | |
| static bool | is_extended_pixel_format (xtd::drawing::imaging::pixel_format pixfmt) noexcept |
| Returns a value that indicates whether the pixel format is 64 bits per pixel. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More... | |
Public Member Functions inherited from xtd::iequatable< image > | |
| virtual bool | equals (const image &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
Blurs the image whith the specified radius.
| radius | The radius of the blur, specified as a <length> |
|
noexcept |
Gets attribute flags for the pixel data of this xtd::drawing::image.
| image_flag value | Integer representation |
|---|---|
| image_flags_none | 0 |
| Iimage_flags_scalable | 1 |
| Iimage_flags_has_alpha | 2 |
| Iimage_flags_has_translucent | 4 |
| Iimage_flags_partially_scalable | 8 |
| Iimage_flags_color_space_rgb | 16 |
| Iimage_flags_color_space_cmyk | 32 |
| Iimage_flags_color_space_gray | 64 |
| Iimage_flags_color_space_ycbr | 128 |
| Iimage_flags_color_space_ycck | 256 |
| Iimage_flags_has_real_dpi | 4096 |
| Iimage_flags_has_real_pixel_size | 8192 |
| Iimage_flags_read_only | 65536 |
| Iimage_flags_caching | 131072 |
|
noexcept |
Gets an array of GUIDs that represent the dimensions of frames within this image.
|
static |
Creates an xtd::drawing::image from the specified data pointer.
| data | A pointer that contains the data for this xtd::drawing::image. |
|
inlinestatic |
Creates an image from the specified file.
| filename | A string that contains the name of the file from which to create the image. |
Creates a xtd::drawing::bitmap from a handle to a GDI bitmap.
| hbitmap | The GDI bitmap handle from which to create the xtd::drawing::bitmap. |
|
static |
Creates an xtd::drawing::image from the specified data stream.
| stream | A std::istream that contains the data for this xtd::drawing::image. |
|
noexcept |
Gets the bounds of the image in the specified unit.
| page_unit | One of the xtd::drawing::graphics_unit values indicating the unit of measure for the bounding rectangle. |
|
noexcept |
Returns information about the parameters supported by the specified image encoder.
| guid | A GUID that specifies the image encoder. |
| size_t xtd::drawing::image::get_frame_count | ( | const xtd::drawing::imaging::frame_dimension & | dimension | ) | const |
Returns the number of frames of the specified dimension.
| dimension | A xtd::drawing::imaging::frame_dimension that specifies the identity of the dimension type. |
|
staticnoexcept |
Returns the color depth, in number of bits per pixel, of the specified pixel format.
| pixfmt | The xtd::drawing::imaging::pixel_format member that specifies the format for which to find the size. |
| xtd::drawing::imaging::property_item xtd::drawing::image::get_property_item | ( | int32 | propid | ) |
Gets the specified property item from this xtd::drawing::image.
| propid | The ID of the property item to get. |
| xtd::argument_exception | The image format of this image does not support property items. |
|
noexcept |
Returns a thumbnail for this xtd::drawing::image.
| thbmb_width | The width, in pixels, of the requested thumbnail image. |
| thum_height | The height, in pixels, of the requested thumbnail image. |
|
noexcept |
Gets the handle of this image.
|
noexcept |
Gets the height, in pixels, of this image.
|
noexcept |
Gets the horizontal resolution, in pixels per inch, of this image.
|
staticnoexcept |
Returns a value that indicates whether the pixel format for this xtd::drawing::image contains alpha information.
| pixfmt | The PixelFormat to test. |
|
staticnoexcept |
Returns a value that indicates whether the pixel format is 32 bits per pixel.
| pixfmt | The PixelFormat to test. |
|
staticnoexcept |
Returns a value that indicates whether the pixel format is 64 bits per pixel.
| pixfmt | The PixelFormat to test. |
|
noexcept |
Gets the color palette used for this image.
|
noexcept |
Sets the color palette used for this image.
| palette | A color_palette that represents the color palette used for this image. |
|
noexcept |
Gets the width and height of this image.
|
noexcept |
Gets the pixel format for this image.
|
noexcept |
Gets IDs of the property items stored in this image.
|
noexcept |
Gets all the property items (pieces of metadata) stored in this image.
|
noexcept |
Gets the file format of this image.
| void xtd::drawing::image::rotate_flip | ( | xtd::drawing::rotate_flip_type | rotate_flip_type | ) |
Rotates, flips, or rotates and flips the xtd::drawing::image.
| rotate_flip_type | A xtd::drawing::rotate_flip_type member that specifies the type of rotation and flip to apply to the image. |
| void xtd::drawing::image::save | ( | const xtd::ustring & | filename | ) | const |
Saves this xtd::drawing::image to the specified file or stream.
| filename | A string that contains the name of the file to which to save this xtd::drawing::image. |
| void xtd::drawing::image::save | ( | const xtd::ustring & | filename, |
| const xtd::drawing::imaging::image_format & | format | ||
| ) | const |
Saves this xtd::drawing::image to the specified file in the specified format.
| filename | A string that contains the name of the file to which to save this xtd::drawing::image. |
| format | The xtd::drawing::imaging::image_format for this xtd::drawing::image. |
| void xtd::drawing::image::save | ( | std::ostream & | stream, |
| const xtd::drawing::imaging::image_format & | format | ||
| ) | const |
Saves this image to the specified stream in the specified format.
| stream | The std::otream where the image will be saved. |
| format | The xtd::drawing::imaging::image_format for this xtd::drawing::image. |
|
noexcept |
Gets the width and height, in pixels, of this image.
|
noexcept |
Gets an object that provides additional data about the image.
|
noexcept |
Sets an object that provides additional data about the image.
| tag | The object that provides additional data about the image. |
|
noexcept |
Gets the vertical resolution, in pixels per inch, of this image.
|
noexcept |
Gets the width, in pixels, of this image.
|
static |
Represent an empty xtd::drawing::image.