Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Public Static Methods | |
| static auto | from_base64_string (const xtd::string &value) -> xtd::drawing::image |
| Convert specified base64 string to image. | |
| static auto | to_array (const xtd::drawing::image &value) -> xtd::array< xtd::byte > |
| Convert specified image to byte array. | |
| static auto | to_base64_string (const xtd::drawing::image &value) -> xtd::string |
| Convert specified image to base64 string. | |
| static auto | to_file (const xtd::drawing::image &value, const xtd::string &filename) -> void |
| Convert specified image to file. | |
| static auto | to_file (const xtd::drawing::image &value, const xtd::string &filename, const xtd::drawing::imaging::image_format &format) -> void |
| Convert specified image to file. | |
| static auto | to_image (const xtd::array< xtd::byte > &value) -> xtd::drawing::image |
| Convert specified byte array to image. | |
| static auto | to_image (const xtd::read_only_span< xtd::byte > &value) -> xtd::drawing::image |
| Convert specified bytes span to image. | |
| static auto | to_image (const xtd::string &filename) -> xtd::drawing::image |
| Convert specified file name string. | |
| static auto | to_image (std::istream &stream) -> xtd::drawing::image |
| Convert specified stream to image. | |
| static auto | to_stream (const xtd::drawing::image &value, std::ostream &stream, const xtd::drawing::imaging::image_format &format) -> void |
| Convert specified image to stream. | |
|
staticnodiscard |
Convert specified base64 string to image.
| value | A base64 string that contains the image. |
|
staticnodiscard |
Convert specified image to byte array.
| value | The image to convert into byte array. |
|
staticnodiscard |
Convert specified image to base64 string.
| value | The image to convert into base64 string. |
|
static |
Convert specified image to file.
| value | The image to convert into base64 string. |
| filename | A string that contains the name of the file to which to save this xtd::drawing::image. |
|
static |
Convert specified image to file.
| value | The image to convert into base64 string. |
| 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. |
|
staticnodiscard |
Convert specified byte array to image.
| value | A byte array that contains the image. |
|
staticnodiscard |
Convert specified bytes span to image.
| value | A bytes span that contains the image. |
|
staticnodiscard |
Convert specified file name string.
| filename | A file name string that contains the image. |
|
staticnodiscard |
Convert specified stream to image.
| stream | The input stream that contains the image. |
|
static |
Convert specified image to stream.
| value | The image to convert. |
| stream | The output stream where to write the image. |
| format | The xtd::drawing::imaging::image_format for this xtd::drawing::image. |