5#include "../drawing_export.hpp" 
   20#include <xtd/iequatable> 
   34    class image_converter;
 
   98      std::vector<
guid> frame_dimentions_list() const noexcept;
 
  110      float horizontal_resolution() const noexcept;
 
  115      imaging::color_palette palette() const noexcept;
 
  118      void palette(const imaging::color_palette& palette) noexcept;
 
  123      const 
size_f& physical_dimension() const noexcept;
 
  127      imaging::pixel_format pixel_format() const noexcept;
 
  132      const std::vector<
int32>& property_id_list() const noexcept;
 
  137      const std::vector<imaging::property_item>& property_items() const noexcept;
 
  141      const imaging::image_format& raw_format() const noexcept;
 
  149      const std::any& tag() const noexcept;
 
  152      void tag(const std::any& tag) noexcept;
 
  156      float vertical_resolution() const noexcept;
 
  174      using 
object::equals;
 
  175      bool equals(const 
image& 
image) const noexcept override;
 
  183      const 
xtd::
byte* get_alpha() const;
 
  201      xtd::drawing::imaging::encoder_parameters get_encoder_parameter_list(
xtd::
guid encoder) const noexcept;
 
  209      size_t get_frame_count(const 
xtd::drawing::imaging::frame_dimension& dimension) const;
 
  217      xtd::drawing::imaging::property_item get_property_item(
int32 propid);
 
  226      const 
xtd::
byte* get_rgb() const;
 
  255      void save(const 
xtd::
string& filename) const;
 
  259      void save(const 
xtd::
string& filename, const 
xtd::drawing::imaging::image_format& format) const;
 
  265      void save(std::ostream& stream, const 
xtd::drawing::imaging::image_format& format) const;
 
  274      static 
image from_file(const 
xtd::
string& filename) {
return image(filename);}
 
  321      explicit image(std::istream& stream);
 
  322      explicit image(std::istream& stream, 
bool use_icm);
 
  323      explicit image(
const char* 
const* bits);
 
  325      image(
int32 width, 
int32 height, 
float horizontal_resolution, 
float vertical_resolution);
 
  338      void blur(
int32 radius);
 
  342      void update_properties();
 
Represents text as a sequence of character units.
Definition basic_string.hpp:79
 
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.hpp:26
 
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
 
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:70
 
Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Definition image_converter.hpp:29
 
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
 
int32 flags() const noexcept
Gets attribute flags for the pixel data of this xtd::drawing::image.
 
static bool is_canonical_pixel_format(xtd::drawing::imaging::pixel_format pixfmt) noexcept
Returns a value that indicates whether the pixel format is 32 bits per pixel.
 
static bool is_extended_pixel_format(xtd::drawing::imaging::pixel_format pixfmt) noexcept
Returns a value that indicates whether the pixel format is 64 bits per pixel.
 
static int32 get_pixel_format_size(xtd::drawing::imaging::pixel_format pixfmt) noexcept
Returns the color depth, in number of bits per pixel, of the specified pixel format.
 
static image empty
Represent an empty xtd::drawing::image.
Definition image.hpp:65
 
static image from_data(const char *const *bits)
Creates an xtd::drawing::image from the specified data pointer.
 
static bool is_alpha_pixel_format(xtd::drawing::imaging::pixel_format pixfmt) noexcept
Returns a value that indicates whether the pixel format for this xtd::drawing::image contains alpha i...
 
static bitmap from_hbitmap(intptr hbitmap)
Creates a xtd::drawing::bitmap from a handle to a GDI bitmap.
 
static image from_stream(std::istream &stream)
Creates an xtd::drawing::image from the specified data stream.
 
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.hpp:34
 
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
 
Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.hpp:31
 
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
 
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:42
 
Contains xtd::drawing::imaging::color_palette class.
 
Contains xtd::drawing::imaging::encoder_parameters class.
 
Contains xtd::drawing::graphics_unit enum class.
 
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
 
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
 
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
 
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition graphics_unit.hpp:17
 
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition pixel_format.hpp:23
 
rotate_flip_type
Specifies how much an image is rotated and the axis used to flip the image.
Definition rotate_flip_type.hpp:19
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Contains xtd::drawing::imaging::property_item class.
 
Contains xtd::drawing::rectangle class.
 
Contains xtd::drawing::rotate_flip_type enum class.
 
Contains xtd::drawing::size_f class.
 
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.hpp:24
 
Contains xtd::drawing::graphics class.
 
Contains xtd::drawing::imaging::frame_dimension class.
 
Contains xtd::drawing::imaging::image_flags class.
 
Contains xtd::drawing::size class.