xtd 0.2.0
Loading...
Searching...
No Matches
image_format.h
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) : guid_(guid) {}
39
41 image_format(const image_format&) = default;
42 image_format& operator =(const image_format&) = default;
44
46
50 const xtd::guid guid() const noexcept {return guid_;}
52
54
58 static image_format bmp() noexcept {return image_format(xtd::guid("b96b3cab-0728-11d3-9d7b-0000f81ef32e"));}
59
62 static image_format emf() noexcept {return image_format(xtd::guid("b96b3cac-0728-11d3-9d7b-0000f81ef32e"));}
63
66 static image_format exif() noexcept {return image_format(xtd::guid("b96b3cb2-0728-11d3-9d7b-0000f81ef32e"));}
67
70 static image_format gif() noexcept {return image_format(xtd::guid("b96b3cb0-0728-11d3-9d7b-0000f81ef32e"));}
71
74 static image_format ico() noexcept {return image_format(xtd::guid("b96b3cb5-0728-11d3-9d7b-0000f81ef32e"));}
75
78 static image_format jpeg() noexcept {return image_format(xtd::guid("b96b3cae-0728-11d3-9d7b-0000f81ef32e"));}
79
82 static image_format memory_bmp() noexcept {return image_format(xtd::guid("b96b3caa-0728-11d3-9d7b-0000f81ef32e"));}
83
86 static image_format png() noexcept {return image_format(xtd::guid("b96b3caf-0728-11d3-9d7b-0000f81ef32e"));}
87
90 static image_format tiff() noexcept {return image_format(xtd::guid("b96b3cb1-0728-11d3-9d7b-0000f81ef32e"));}
91
94 static image_format wmf() noexcept {return image_format(xtd::guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e"));}
95
98 static image_format memory_gif() noexcept {return image_format(xtd::guid("b96b3cb6-0728-11d3-9d7b-0000f81ef32e"));}
99
102 static image_format memory_ico() noexcept {return image_format(xtd::guid("b96b3cb7-0728-11d3-9d7b-0000f81ef32e"));}
103
106 static image_format memory_jpeg() noexcept {return image_format(xtd::guid("b96b3cb8-0728-11d3-9d7b-0000f81ef32e"));}
107
110 static image_format memory_png() noexcept {return image_format(xtd::guid("b96b3cb9-0728-11d3-9d7b-0000f81ef32e"));}
111
114 static image_format memory_tiff() noexcept {return image_format(xtd::guid("b96b3cba-0728-11d3-9d7b-0000f81ef32e"));}
115
118 static image_format cur() noexcept {return image_format(xtd::guid("b96b3cbb-0728-11d3-9d7b-0000f81ef32e"));}
119
122 static image_format memory_cur() noexcept {return image_format(xtd::guid("b96b3cbc-0728-11d3-9d7b-0000f81ef32e"));}
123
126 static image_format xbm() noexcept {return image_format(xtd::guid("b96b3cbd-0728-11d3-9d7b-0000f81ef32e"));}
127
130 static image_format memory_xbm() noexcept {return image_format(xtd::guid("b96b3cbe-0728-11d3-9d7b-0000f81ef32e"));}
131
134 static image_format xpm() noexcept {return image_format(xtd::guid("b96b3cbf-0728-11d3-9d7b-0000f81ef32e"));}
135
138 static image_format memory_xpm() noexcept {return image_format(xtd::guid("b96b3cc0-0728-11d3-9d7b-0000f81ef32e"));}
139
142 static image_format pnm() noexcept {return image_format(xtd::guid("b96b3cc1-0728-11d3-9d7b-0000f81ef32e"));}
143
146 static image_format memory_pnm() noexcept {return image_format(xtd::guid("b96b3cc2-0728-11d3-9d7b-0000f81ef32e"));}
147
150 static image_format pcx() noexcept {return image_format(xtd::guid("b96b3cc3-0728-11d3-9d7b-0000f81ef32e"));}
151
154 static image_format memory_pcx() noexcept {return image_format(xtd::guid("b96b3cc4-0728-11d3-9d7b-0000f81ef32e"));}
155
158 static image_format pict() noexcept {return image_format(xtd::guid("b96b3cc5-0728-11d3-9d7b-0000f81ef32e"));}
159
162 static image_format memory_pict() noexcept {return image_format(xtd::guid("b96b3cc6-0728-11d3-9d7b-0000f81ef32e"));}
163
166 static image_format icon() noexcept {return image_format(xtd::guid("b96b3cc7-0728-11d3-9d7b-0000f81ef32e"));}
167
170 static image_format memory_icon() noexcept {return image_format(xtd::guid("b96b3cc8-0728-11d3-9d7b-0000f81ef32e"));}
171
174 static image_format cursor() noexcept {return image_format(xtd::guid("b96b3cc9-0728-11d3-9d7b-0000f81ef32e"));}
175
178 static image_format memory_cursor() noexcept {return image_format(xtd::guid("b96b3cca-0728-11d3-9d7b-0000f81ef32e"));}
179
182 static image_format ani() noexcept {return image_format(xtd::guid("b96b3ccb-0728-11d3-9d7b-0000f81ef32e"));}
183
186 static image_format iif() noexcept {return image_format(xtd::guid("b96b3ccc-0728-11d3-9d7b-0000f81ef32e"));}
187
190 static image_format tga() noexcept {return image_format(xtd::guid("b96b3ccd-0728-11d3-9d7b-0000f81ef32e"));}
192
194
196 int32 compare_to(const image_format& value) const noexcept override {return guid_ < value.guid_ ? -1 : guid_ > value.guid_ ? 1 : 0;}
197 using object::equals;
198 bool equals(const image_format& value) const noexcept override {return guid_ == value.guid_;}
199
202 xtd::string to_string() const noexcept override {return string::format("[image_format: {}]", guid_);}
204
205 private:
206 xtd::guid guid_;
207 };
208 }
209 }
210}
Represents text as a sequence of character units.
Definition basic_string.h:79
Specifies the file format of the image. Not inheritable.
Definition image_format.h:25
static image_format tga() noexcept
Gets the truevision targa (TGA) image format.
Definition image_format.h:190
static image_format pict() noexcept
Gets the apple pict (PICT) image format.
Definition image_format.h:158
static image_format iif() noexcept
Gets the iif (IIF) image format.
Definition image_format.h:186
static image_format gif() noexcept
Gets the Graphics Interchange Format (GIF) image format.
Definition image_format.h:70
static image_format memory_cur() noexcept
Gets the CUR memory.
Definition image_format.h:122
static image_format tiff() noexcept
Gets the Tagged Image File Format (TIFF) image format.
Definition image_format.h:90
static image_format jpeg() noexcept
Gets the Joint Photographic Experts Group (JPEG) image format.
Definition image_format.h:78
static image_format ani() noexcept
Gets the animated file cursor (ANI) image format.
Definition image_format.h:182
static image_format memory_pcx() noexcept
Gets the PCX memory.
Definition image_format.h:154
static image_format xpm() noexcept
Gets the x pixmap (XPM) image format.
Definition image_format.h:134
static image_format ico() noexcept
Gets the windows icon (ico) image format.
Definition image_format.h:74
static image_format memory_ico() noexcept
Gets the ICO memory format.
Definition image_format.h:102
static image_format pcx() noexcept
Gets the pcx (PCX) image format.
Definition image_format.h:150
static image_format memory_tiff() noexcept
Gets the TIFF memory.
Definition image_format.h:114
static image_format memory_pnm() noexcept
Gets the PNM memory.
Definition image_format.h:146
static image_format memory_gif() noexcept
Gets the GIF memory format.
Definition image_format.h:98
static image_format emf() noexcept
Gets the enhanced metafile (EMF) image format.
Definition image_format.h:62
image_format(const guid &guid)
Initializes a new instance of the image_format class by using the specified guid structure.
Definition image_format.h:37
const xtd::guid guid() const noexcept
Gets a guid structure that represents this image_format object.
Definition image_format.h:50
static image_format memory_bmp() noexcept
Gets the format of a bitmap in memory.
Definition image_format.h:82
static image_format pnm() noexcept
Gets the portable pixmap (PNM) image format.
Definition image_format.h:142
static image_format png() noexcept
Gets the W3C Portable Network Graphics (PNG) image format.
Definition image_format.h:86
static image_format memory_cursor() noexcept
Gets the CURSOR memory.
Definition image_format.h:178
static image_format memory_xbm() noexcept
Gets the XMB memory.
Definition image_format.h:130
static image_format memory_xpm() noexcept
Gets the XPM memory.
Definition image_format.h:138
static image_format bmp() noexcept
Gets the bitmap (BMP) image format.
Definition image_format.h:58
static image_format memory_png() noexcept
Gets the PNG memory format.
Definition image_format.h:110
static image_format cur() noexcept
Gets the cursor (CUR) image format.
Definition image_format.h:118
static image_format wmf() noexcept
Gets the Windows metafile (WMF) image format.
Definition image_format.h:94
xtd::string to_string() const noexcept override
Converts this image_format object to a human-readable string.
Definition image_format.h:202
static image_format exif() noexcept
Gets the Exchangeable Image File (Exif) format.
Definition image_format.h:66
static image_format memory_jpeg() noexcept
Gets the JPEG memory format.
Definition image_format.h:106
static image_format xbm() noexcept
Gets the x bitmap (XBM) image format.
Definition image_format.h:126
static image_format memory_pict() noexcept
Gets the PICT memory.
Definition image_format.h:162
static image_format icon() noexcept
Gets the apple icon (ICON) image format.
Definition image_format.h:166
static image_format memory_icon() noexcept
Gets the ICON memory.
Definition image_format.h:170
static image_format cursor() noexcept
Gets the apple cursor (CURSOR) image format.
Definition image_format.h:174
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.h:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.
static basic_string format(const basic_string< char > &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.h:24