xtd 0.2.0
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 const xtd::guid guid() const noexcept;
52
54
58 static image_format bmp() noexcept;
59
62 static image_format emf() noexcept;
63
66 static image_format exif() noexcept;
67
70 static image_format gif() noexcept;
71
74 static image_format ico() noexcept;
75
78 static image_format jpeg() noexcept;
79
82 static image_format memory_bmp() noexcept;
83
86 static image_format png() noexcept;
87
90 static image_format tiff() noexcept;
91
94 static image_format wmf() noexcept;
95
98 static image_format memory_gif() noexcept;
99
102 static image_format memory_ico() noexcept;
103
106 static image_format memory_jpeg() noexcept;
107
110 static image_format memory_png() noexcept;
111
114 static image_format memory_tiff() noexcept;
115
118 static image_format cur() noexcept;
119
122 static image_format memory_cur() noexcept;
123
126 static image_format xbm() noexcept;
127
130 static image_format memory_xbm() noexcept;
131
134 static image_format xpm() noexcept;
135
138 static image_format memory_xpm() noexcept;
139
142 static image_format pnm() noexcept;
143
146 static image_format memory_pnm() noexcept;
147
150 static image_format pcx() noexcept;
151
154 static image_format memory_pcx() noexcept;
155
158 static image_format pict() noexcept;
159
162 static image_format memory_pict() noexcept;
163
166 static image_format icon() noexcept;
167
170 static image_format memory_icon() noexcept;
171
174 static image_format cursor() noexcept;
175
178 static image_format memory_cursor() noexcept;
179
182 static image_format ani() noexcept;
183
186 static image_format iif() noexcept;
187
190 static image_format tga() noexcept;
192
194
206 int32 compare_to(const image_format& value) const noexcept override;
207
211 bool equals(const object& obj) const noexcept override;
215 bool equals(const image_format& other) const noexcept override;
216
219 xtd::size get_hash_code() const noexcept override;
220
223 xtd::string to_string() const noexcept override;
225
226 private:
227 xtd::guid guid_;
228 };
229 }
230 }
231}
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.hpp:28
Specifies the file format of the image. Not inheritable.
Definition image_format.hpp:25
static image_format tga() noexcept
Gets the truevision targa (TGA) image format.
static image_format pict() noexcept
Gets the apple pict (PICT) image format.
static image_format iif() noexcept
Gets the iif (IIF) image format.
static image_format gif() noexcept
Gets the Graphics Interchange Format (GIF) image format.
static image_format memory_cur() noexcept
Gets the CUR memory.
static image_format tiff() noexcept
Gets the Tagged Image File Format (TIFF) image format.
static image_format jpeg() noexcept
Gets the Joint Photographic Experts Group (JPEG) image format.
static image_format ani() noexcept
Gets the animated file cursor (ANI) image format.
static image_format memory_pcx() noexcept
Gets the PCX memory.
static image_format xpm() noexcept
Gets the x pixmap (XPM) image format.
static image_format ico() noexcept
Gets the windows icon (ico) image format.
static image_format memory_ico() noexcept
Gets the ICO memory format.
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
static image_format pcx() noexcept
Gets the pcx (PCX) image format.
static image_format memory_tiff() noexcept
Gets the TIFF memory.
static image_format memory_pnm() noexcept
Gets the PNM memory.
int32 compare_to(const image_format &value) const noexcept override
Compares the current instance with another object of the same type.
static image_format memory_gif() noexcept
Gets the GIF memory format.
static image_format emf() noexcept
Gets the enhanced metafile (EMF) image format.
const xtd::guid guid() const noexcept
Gets a guid structure that represents this image_format object.
static image_format memory_bmp() noexcept
Gets the format of a bitmap in memory.
static image_format pnm() noexcept
Gets the portable pixmap (PNM) image format.
static image_format png() noexcept
Gets the W3C Portable Network Graphics (PNG) image format.
static image_format memory_cursor() noexcept
Gets the CURSOR memory.
static image_format memory_xbm() noexcept
Gets the XMB memory.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
image_format(const guid &guid) noexcept
Initializes a new instance of the image_format class by using the specified guid structure.
static image_format memory_xpm() noexcept
Gets the XPM memory.
static image_format bmp() noexcept
Gets the bitmap (BMP) image format.
static image_format memory_png() noexcept
Gets the PNG memory format.
static image_format cur() noexcept
Gets the cursor (CUR) image format.
static image_format wmf() noexcept
Gets the Windows metafile (WMF) image format.
xtd::string to_string() const noexcept override
Converts this image_format object to a human-readable string.
static image_format exif() noexcept
Gets the Exchangeable Image File (Exif) format.
static image_format memory_jpeg() noexcept
Gets the JPEG memory format.
static image_format xbm() noexcept
Gets the x bitmap (XBM) image format.
static image_format memory_pict() noexcept
Gets the PICT memory.
static image_format memory_icon() noexcept
Gets the ICON memory.
static image_format cursor() noexcept
Gets the apple cursor (CURSOR) image format.
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.hpp:24
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ other
The operating system is other.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31