7#include <xtd/iequatable>
69 explicit icon(std::istream& stream);
87 explicit icon(
const char*
const* bits);
145 bool equals(const
object& obj) const noexcept override;
160 void save(std::ostream& stream) const;
Contains xtd::drawing::bitmap class.
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.hpp:26
icon(const icon &original, int32 width, int32 height)
Initializes a new instance of the xtd::drawing::icon class and attempts to find a version of the icon...
icon(const xtd::string &filename, int32 width, int32 height)
Initializes a new instance of the xtd::drawing::icon class with the specified width and height from t...
icon(const char *const *bits)
Initializes a new instance of the xtd::drawing::icon class from the specified data.
icon(const char *const *bits, const xtd::drawing::size &size)
Initializes a new instance of the xtd::drawing::icon class of the specified size from the specified d...
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
icon(const icon &original, const xtd::drawing::size &size)
Initializes a new instance of the xtd::drawing::icon class and attempts to find a version of the icon...
xtd::drawing::bitmap to_bitmap() const
Converts this xtd::drawing::icon to a GDI+ xtd::drawing::bitmap.
static icon from_bitmap(const xtd::drawing::bitmap &bitmap)
Creates a GDI+ xtd::drawing::icon from the specified bitmap.
const xtd::drawing::size & size() const noexcept
Gets the size of this xtd::drawing::icon.
icon(std::istream &stream, const xtd::drawing::size &size)
Initializes a new instance of the xtd::drawing::icon class of the specified size from the specified s...
int32 height() const noexcept
Gets the height of this xtd::drawing::icon.
icon(const char *const *bits, int32 width, int32 height)
Initializes a new instance of the xtd::drawing::icon class from the specified data and with the speci...
intptr handle() const noexcept
Gets the handle of this icon. This is not a copy of the handle; do not free it.
static icon from_handle(intptr handle)
Creates a GDI+ xtd::drawing::icon from the specified Windows handle to an icon (HICON).
void save(const xtd::string &filename) const
Saves this xtd::drawing::icon to the specified output filename.
int32 width() const noexcept
Gets the width of this xtd::drawing::icon.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
icon(const xtd::string &filename, const xtd::drawing::size &size)
Initializes a new instance of the xtd::drawing::icon class of the specified size from the specified f...
icon(std::istream &stream, int32 width, int32 height)
Initializes a new instance of the xtd::drawing::icon class from the specified data stream and with th...
icon(std::istream &stream)
Initializes a new instance of the xtd::drawing::icon class from the specified data stream.
xtd::string to_string() const noexcept override
Gets a human-readable string that describes the xtd::drawing::icon.
icon(const xtd::string &filename)
Initializes a new instance of the xtd::drawing::icon class from the specified file name.
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
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
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
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31