Specifies the file format of the image. Not inheritable.
- Namespace
- xtd::drawing::imaging
- Library
- xtd.drawing
|
int32 | compare_to (const image_format &value) const noexcept override |
|
bool | equals (const image_format &value) const noexcept override |
|
xtd::string | to_string () const noexcept override |
| Converts this image_format object to a human-readable string.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual int32 | compare_to (const image_format &obj) const noexcept=0 |
| Compares the current instance with another object of the same type.
|
|
virtual bool | equals (const image_format &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ image_format()
xtd::drawing::imaging::image_format::image_format |
( |
const guid & |
guid | ) |
|
|
inlineexplicit |
Initializes a new instance of the image_format class by using the specified guid structure.
- Parameters
-
guid | The guid structure that specifies a particular image format. |
◆ guid()
const xtd::guid xtd::drawing::imaging::image_format::guid |
( |
| ) |
const |
|
inlinenoexcept |
Gets a guid structure that represents this image_format object.
- Returns
- A guid structure that represents this image_format object.
◆ bmp()
static image_format xtd::drawing::imaging::image_format::bmp |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the bitmap (BMP) image format.
- Returns
- An image_format object that indicates the bitmap image format.
◆ emf()
static image_format xtd::drawing::imaging::image_format::emf |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the enhanced metafile (EMF) image format.
- Returns
- An image_format object that indicates the enhanced metafile image format.
◆ exif()
static image_format xtd::drawing::imaging::image_format::exif |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the Exchangeable Image File (Exif) format.
- Returns
- An image_format object that indicates the Exif format.
◆ gif()
static image_format xtd::drawing::imaging::image_format::gif |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the Graphics Interchange Format (GIF) image format.
- Returns
- An image_format object that indicates the GIF image format.
◆ ico()
static image_format xtd::drawing::imaging::image_format::ico |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the windows icon (ico) image format.
- Returns
- An image_format object that indicates the icon image format.
◆ jpeg()
static image_format xtd::drawing::imaging::image_format::jpeg |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the Joint Photographic Experts Group (JPEG) image format.
- Returns
- An image_format object that indicates the JOEG image format.
◆ memory_bmp()
static image_format xtd::drawing::imaging::image_format::memory_bmp |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the format of a bitmap in memory.
- Returns
- An image_format object that indicates the bitmap memory image format.
◆ png()
static image_format xtd::drawing::imaging::image_format::png |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the W3C Portable Network Graphics (PNG) image format.
- Returns
- An image_format object that indicates the PNG image format.
◆ tiff()
static image_format xtd::drawing::imaging::image_format::tiff |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the Tagged Image File Format (TIFF) image format.
- Returns
- An image_format object that indicates the TIFF image format.
◆ wmf()
static image_format xtd::drawing::imaging::image_format::wmf |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the Windows metafile (WMF) image format.
- Returns
- An image_format object that indicates the WMF image format.
◆ memory_gif()
static image_format xtd::drawing::imaging::image_format::memory_gif |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the GIF memory format.
- Returns
- An image_format object that indicates the GIF mempry image format.
◆ memory_ico()
static image_format xtd::drawing::imaging::image_format::memory_ico |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the ICO memory format.
- Returns
- An image_format object that indicates the icon memory image format.
◆ memory_jpeg()
static image_format xtd::drawing::imaging::image_format::memory_jpeg |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the JPEG memory format.
- Returns
- An image_format object that indicates the JPEG memory image format.
◆ memory_png()
static image_format xtd::drawing::imaging::image_format::memory_png |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the PNG memory format.
- Returns
- An image_format object that indicates the PNG memory image format.
◆ memory_tiff()
static image_format xtd::drawing::imaging::image_format::memory_tiff |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the TIFF memory.
- Returns
- An image_format object that indicates the TIFF memory image format.
◆ cur()
static image_format xtd::drawing::imaging::image_format::cur |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the cursor (CUR) image format.
- Returns
- An image_format object that indicates the cursor image format.
◆ memory_cur()
static image_format xtd::drawing::imaging::image_format::memory_cur |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the CUR memory.
- Returns
- An image_format object that indicates the CUR memory image format.
◆ xbm()
static image_format xtd::drawing::imaging::image_format::xbm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the x bitmap (XBM) image format.
- Returns
- An image_format object that indicates the XBM image format.
◆ memory_xbm()
static image_format xtd::drawing::imaging::image_format::memory_xbm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the XMB memory.
- Returns
- An image_format object that indicates the XBM memory image format.
◆ xpm()
static image_format xtd::drawing::imaging::image_format::xpm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the x pixmap (XPM) image format.
- Returns
- An image_format object that indicates the XPM image format.
◆ memory_xpm()
static image_format xtd::drawing::imaging::image_format::memory_xpm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the XPM memory.
- Returns
- An image_format object that indicates the XPM memory image format.
◆ pnm()
static image_format xtd::drawing::imaging::image_format::pnm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the portable pixmap (PNM) image format.
- Returns
- An image_format object that indicates the PNM image format.
◆ memory_pnm()
static image_format xtd::drawing::imaging::image_format::memory_pnm |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the PNM memory.
- Returns
- An image_format object that indicates the PNM memory image format.
◆ pcx()
static image_format xtd::drawing::imaging::image_format::pcx |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the pcx (PCX) image format.
- Returns
- An image_format object that indicates the PCX image format.
◆ memory_pcx()
static image_format xtd::drawing::imaging::image_format::memory_pcx |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the PCX memory.
- Returns
- An image_format object that indicates the PCX memory image format.
◆ pict()
static image_format xtd::drawing::imaging::image_format::pict |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the apple pict (PICT) image format.
- Returns
- An image_format object that indicates the PICT image format.
◆ memory_pict()
static image_format xtd::drawing::imaging::image_format::memory_pict |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the PICT memory.
- Returns
- An image_format object that indicates the PICT memory image format.
◆ icon()
static image_format xtd::drawing::imaging::image_format::icon |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the apple icon (ICON) image format.
- Returns
- An image_format object that indicates the ICON image format.
◆ memory_icon()
static image_format xtd::drawing::imaging::image_format::memory_icon |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the ICON memory.
- Returns
- An image_format object that indicates the ICOM memory image format.
◆ cursor()
static image_format xtd::drawing::imaging::image_format::cursor |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the apple cursor (CURSOR) image format.
- Returns
- An image_format object that indicates the CURSOR format.
◆ memory_cursor()
static image_format xtd::drawing::imaging::image_format::memory_cursor |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the CURSOR memory.
- Returns
- An image_format object that indicates the CURSOR memory image format.
◆ ani()
static image_format xtd::drawing::imaging::image_format::ani |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the animated file cursor (ANI) image format.
- Returns
- An image_format object that indicates the ANI image format.
◆ iif()
static image_format xtd::drawing::imaging::image_format::iif |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the iif (IIF) image format.
- Returns
- An image_format object that indicates the IIF image format.
◆ tga()
static image_format xtd::drawing::imaging::image_format::tga |
( |
| ) |
|
|
inlinestaticnoexcept |
Gets the truevision targa (TGA) image format.
- Returns
- An image_format object that indicates the TGA image format.
◆ to_string()
xtd::string xtd::drawing::imaging::image_format::to_string |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ equals() [1/2]
virtual bool xtd::object::equals |
( |
const object & |
obj | ) |
const |
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
obj | The object to compare with the current object. |
- Returns
- true if the specified object is equal to the current object. otherwise, false.
- Examples
- The following code example compares the current instance with another object.
#include <xtd/console>
auto main() -> int {
auto object1 = new_ptr<object>();
auto object2 = new_ptr<object>();
auto object3 = object2;
object3 = object1;
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Reimplemented from xtd::object.
◆ equals() [2/2]
template<typename object_a_t , typename object_b_t >
static bool xtd::object::equals |
( |
const object_a_t & |
object_a, |
|
|
const object_b_t & |
object_b |
|
) |
| |
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
- Parameters
-
object_a | The first object to compare. |
object_b | The second object to compare. |
- Returns
- true if object_a is the same instance as object_b or if both are null references or if object_a(object_b) returns true. otherwise, false.
- Examples
- The following code example compares different objects.
#include <xtd/console>
auto main() -> int {
string s1 = "Tom";
string s2 = "Carol";
s1 = "Tom";
s2 = "Tom";
s1 = "";
s2 = "Tom";
s1 = "Carol";
s2 = "";
s1 = "";
s2 = "";
}
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.
The documentation for this class was generated from the following file: