xtd 0.2.0
image_converter.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "image.hpp"
7#include <xtd/static>
8
10namespace xtd {
12 namespace drawing {
14 class bitmap;
16
29 public:
31
38
44
50
56 static void to_file(const xtd::drawing::image& value, const xtd::string& filename);
61 static void to_file(const xtd::drawing::image& value, const xtd::string& filename, const xtd::drawing::imaging::image_format& format);
62
76 static xtd::drawing::image to_image(const xtd::string& filename);
80 static xtd::drawing::image to_image(std::istream& stream);
81
88 static void to_stream(const xtd::drawing::image& value, std::ostream& stream, const xtd::drawing::imaging::image_format& format);
90 };
91 }
92}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.hpp:26
Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Definition image_converter.hpp:28
static xtd::drawing::image to_image(const xtd::array< xtd::byte > &value)
Convert specified byte array to image.
static xtd::drawing::image to_image(const xtd::read_only_span< xtd::byte > &value)
Convert specified bytes span to image.
static void to_file(const xtd::drawing::image &value, const xtd::string &filename, const xtd::drawing::imaging::image_format &format)
Convert specified image to file.
static xtd::drawing::image from_base64_string(const xtd::string &value)
Convert specified base64 string to image.
static void to_file(const xtd::drawing::image &value, const xtd::string &filename)
Convert specified image to file.
static xtd::drawing::image to_image(std::istream &stream)
Convert specified stream to image.
static xtd::string to_base64_string(const xtd::drawing::image &value)
Convert specified image to base64 string.
static xtd::array< xtd::byte > to_array(const xtd::drawing::image &value)
Convert specified image to byte array.
static void to_stream(const xtd::drawing::image &value, std::ostream &stream, const xtd::drawing::imaging::image_format &format)
Convert specified image to stream.
static xtd::drawing::image to_image(const xtd::string &filename)
Convert specified file name string.
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Specifies the file format of the image. Not inheritable.
Definition image_format.hpp:25
Contains drawing_export_ keyword.
xtd::string format(const xtd::string &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition format.hpp:20
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains xtd::drawing::image class.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr read_only_span(const element_type(&array)[len]) noexcept
Creates an xtd::read_only_span with specified native array.
Definition read_only_span.hpp:112