xtd 0.2.0
image_converter.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.hpp"
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:59
Represents text as a sequence of character units.
Definition basic_string.hpp:71
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:53
Specifies the file format of the image. Not inheritable.
Definition image_format.hpp:25
Represents a non-owning view over a contiguous sequence of objects.
Definition read_only_span.hpp:52
#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
Contains xtd::drawing::image class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10