5 #include "../drawing_export.h" 20 #include <xtd/iequatable> 22 #include <xtd/ustring> 55 image& operator =(
const image& image) =
default;
96 std::vector<
guid> frame_dimentions_list() const noexcept;
100 intptr handle() const noexcept;
104 int32 height() const noexcept;
108 float horizontal_resolution() const noexcept;
113 imaging::color_palette palette() const noexcept;
116 void palette(const imaging::color_palette& palette) noexcept;
121 const
size_f& physical_dimension() const noexcept;
130 const std::vector<
int32>& property_id_list() const noexcept;
135 const std::vector<imaging::property_item>& property_items() const noexcept;
139 const imaging::image_format& raw_format() const noexcept;
143 const drawing::
size&
size() const noexcept;
147 const std::any& tag() const noexcept;
150 void tag(const std::any& tag) noexcept;
154 float vertical_resolution() const noexcept;
158 int32 width() const noexcept;
169 image blur(
int32 radius) const;
176 bool equals(const image& image) const noexcept override;
181 static image from_file(const
xtd::
ustring& filename) {
return image(filename);}
194 static image from_stream(std::istream& stream);
200 static image from_data(
const char*
const* bits);
281 explicit image(
intptr hbitmap);
283 explicit image(
const xtd::ustring& filename,
bool use_icm);
284 explicit image(std::istream& stream);
285 explicit image(std::istream& stream,
bool use_icm);
286 explicit image(
const char*
const* bits);
288 image(
int32 width,
int32 height,
float horizontal_resolution,
float vertical_resolution);
291 image(
const image& image,
int32 width,
int32 height);
292 image(
const image& image,
const rectangle& rect);
293 static image from_hicon(
intptr hicon);
298 void update_properties();
300 std::shared_ptr<data> data_;
rotate_flip_type
Specifies how much an image is rotated and the axis used to flip the image.
Definition: rotate_flip_type.h:19
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::drawing::rotate_flip_type enum class.
Contains xtd::drawing::imaging::color_palette class.
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Stores a set of four floating-point numbers that represent the location and size of a rectangle...
Definition: rectangle_f.h:34
Contains xtd::drawing::imaging::image_flags class.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::drawing::imaging::frame_dimension class.
Stores an ordered pair of floating-point, which specify a height and width.
Definition: size_f.h:31
Encapsulates a metadata property to be included in an image file. Not inheritable.
Definition: property_item.h:25
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes...
Definition: bitmap.h:26
Contains xtd::drawing::rectangle class.
Encapsulates an array of EncoderParameter objects.
Definition: encoder_parameters.h:23
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition: pixel_format.h:23
Provides properties that get the frame dimensions of an image. Not inheritable.
Definition: frame_dimension.h:24
Contains xtd::drawing::imaging::property_item class.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
Contains xtd::drawing::imaging::encoder_parameters class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::drawing::size_f class.
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition: guid.h:23
Contains xtd::drawing::graphics_unit enum class.
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition: graphics_unit.h:17
Contains xtd::drawing::size class.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
static image empty
Represent an empty xtd::drawing::image.
Definition: image.h:63
Contains xtd::drawing::graphics class.