xtd 1.0.0
Loading...
Searching...
No Matches
image_format.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/guid>
6#include <xtd/iequatable>
7#include <xtd/object>
8#include <xtd/string>
9#include <cstdint>
10#include <ostream>
11
13namespace xtd {
15 namespace drawing {
18 namespace imaging {
25 class image_format final : public object, public icomparable<image_format>, public xtd::iequatable<image_format> {
26 public:
28 image_format() = default;
30
32
37 explicit image_format(const guid& guid) noexcept;
39
41 image_format(const image_format&) = default;
42 image_format& operator =(const image_format&) = default;
44
46
50 [[nodiscard]] auto guid() const noexcept -> const xtd::guid;
52
54
58 [[nodiscard]] static auto bmp() noexcept -> image_format;
59
62 [[nodiscard]] static auto emf() noexcept -> image_format;
63
66 [[nodiscard]] static auto exif() noexcept -> image_format;
67
70 [[nodiscard]] static auto gif() noexcept -> image_format;
71
74 [[nodiscard]] static auto ico() noexcept -> image_format;
75
78 [[nodiscard]] static auto jpeg() noexcept -> image_format;
79
82 [[nodiscard]] static auto memory_bmp() noexcept -> image_format;
83
86 [[nodiscard]] static auto png() noexcept -> image_format;
87
90 [[nodiscard]] static auto tiff() noexcept -> image_format;
91
94 [[nodiscard]] static auto wmf() noexcept -> image_format;
95
98 [[nodiscard]] static auto memory_gif() noexcept -> image_format;
99
102 [[nodiscard]] static auto memory_ico() noexcept -> image_format;
103
106 [[nodiscard]] static auto memory_jpeg() noexcept -> image_format;
107
110 [[nodiscard]] static auto memory_png() noexcept -> image_format;
111
114 [[nodiscard]] static auto memory_tiff() noexcept -> image_format;
115
118 [[nodiscard]] static auto cur() noexcept -> image_format;
119
122 [[nodiscard]] static auto memory_cur() noexcept -> image_format;
123
126 [[nodiscard]] static auto xbm() noexcept -> image_format;
127
130 [[nodiscard]] static auto memory_xbm() noexcept -> image_format;
131
134 [[nodiscard]] static auto xpm() noexcept -> image_format;
135
138 [[nodiscard]] static auto memory_xpm() noexcept -> image_format;
139
142 [[nodiscard]] static auto pnm() noexcept -> image_format;
143
146 [[nodiscard]] static auto memory_pnm() noexcept -> image_format;
147
150 [[nodiscard]] static auto pcx() noexcept -> image_format;
151
154 [[nodiscard]] static auto memory_pcx() noexcept -> image_format;
155
158 [[nodiscard]] static auto pict() noexcept -> image_format;
159
162 [[nodiscard]] static auto memory_pict() noexcept -> image_format;
163
166 [[nodiscard]] static auto icon() noexcept -> image_format;
167
170 [[nodiscard]] static auto memory_icon() noexcept -> image_format;
171
174 [[nodiscard]] static auto cursor() noexcept -> image_format;
175
178 [[nodiscard]] static auto memory_cursor() noexcept -> image_format;
179
182 [[nodiscard]] static auto ani() noexcept -> image_format;
183
186 [[nodiscard]] static auto iif() noexcept -> image_format;
187
190 [[nodiscard]] static auto tga() noexcept -> image_format;
192
194
206 [[nodiscard]] auto compare_to(const image_format& value) const noexcept -> int32 override;
207
211 [[nodiscard]] auto equals(const object& obj) const noexcept -> bool override;
215 [[nodiscard]] auto equals(const image_format& other) const noexcept -> bool override;
216
219 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
220
223 [[nodiscard]] auto to_string() const noexcept -> xtd::string override;
225
226 private:
227 xtd::guid guid_;
228 };
229 }
230 }
231}
static auto ani() noexcept -> image_format
Gets the animated file cursor (ANI) image format.
auto guid() const noexcept -> const xtd::guid
Gets a guid structure that represents this image_format object.
auto equals(const object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto to_string() const noexcept -> xtd::string override
Converts this image_format object to a human-readable string.
static auto gif() noexcept -> image_format
Gets the Graphics Interchange Format (GIF) image format.
static auto tiff() noexcept -> image_format
Gets the Tagged Image File Format (TIFF) image format.
static auto pnm() noexcept -> image_format
Gets the portable pixmap (PNM) image format.
static auto memory_pict() noexcept -> image_format
Gets the PICT memory.
static auto ico() noexcept -> image_format
Gets the windows icon (ico) image format.
static auto memory_bmp() noexcept -> image_format
Gets the format of a bitmap in memory.
auto compare_to(const image_format &value) const noexcept -> int32 override
Compares the current instance with another object of the same type.
static auto wmf() noexcept -> image_format
Gets the Windows metafile (WMF) image format.
static auto xbm() noexcept -> image_format
Gets the x bitmap (XBM) image format.
static auto memory_xbm() noexcept -> image_format
Gets the XMB memory.
static auto png() noexcept -> image_format
Gets the W3C Portable Network Graphics (PNG) image format.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
static auto xpm() noexcept -> image_format
Gets the x pixmap (XPM) image format.
static auto bmp() noexcept -> image_format
Gets the bitmap (BMP) image format.
static auto memory_xpm() noexcept -> image_format
Gets the XPM memory.
static auto memory_cur() noexcept -> image_format
Gets the CUR memory.
static auto tga() noexcept -> image_format
Gets the truevision targa (TGA) image format.
static auto emf() noexcept -> image_format
Gets the enhanced metafile (EMF) image format.
static auto cur() noexcept -> image_format
Gets the cursor (CUR) image format.
static auto memory_jpeg() noexcept -> image_format
Gets the JPEG memory format.
static auto memory_cursor() noexcept -> image_format
Gets the CURSOR memory.
static auto memory_ico() noexcept -> image_format
Gets the ICO memory format.
image_format(const guid &guid) noexcept
Initializes a new instance of the image_format class by using the specified guid structure.
static auto memory_icon() noexcept -> image_format
Gets the ICON memory.
static auto jpeg() noexcept -> image_format
Gets the Joint Photographic Experts Group (JPEG) image format.
static auto pcx() noexcept -> image_format
Gets the pcx (PCX) image format.
static auto memory_gif() noexcept -> image_format
Gets the GIF memory format.
static auto exif() noexcept -> image_format
Gets the Exchangeable Image File (Exif) format.
static auto icon() noexcept -> image_format
Gets the apple icon (ICON) image format.
static auto iif() noexcept -> image_format
Gets the iif (IIF) image format.
static auto cursor() noexcept -> image_format
Gets the apple cursor (CURSOR) image format.
static auto memory_pcx() noexcept -> image_format
Gets the PCX memory.
static auto memory_tiff() noexcept -> image_format
Gets the TIFF memory.
static auto pict() noexcept -> image_format
Gets the apple pict (PICT) image format.
static auto memory_pnm() noexcept -> image_format
Gets the PNM memory.
static auto memory_png() noexcept -> image_format
Gets the PNG memory format.
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:22
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
object()=default
Create a new instance of the ultimate base class object.
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
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