66 explicit bitmap(std::istream& stream);
72 explicit bitmap(std::istream& stream,
bool use_icm);
199 [[deprecated(
"Replaced by xtd::drawing::image::from_xpm_data - Will be removed in version 1.2.0.")]]
200 explicit
bitmap(const
char* const* bits);
Contains xtd::drawing::imaging::bitmap_data struct.
auto make_transparent() -> void
Makes the default transparent color transparent for this xtd::drawing::bitmap.
bitmap(std::istream &stream)
Initializes a new instance of the bitmap class from the specified data stream.
bitmap clone(const xtd::drawing::rectangle &rect) const
Creates a copy of the section of this xtd::drawing::bitmap defined with a specified rectangle.
auto unlock_bits(const xtd::drawing::imaging::bitmap_data &data) -> void
Unlocks this xtd::drawing::bitmap from system memory.
auto set_pixel(xtd::int32 x, xtd::int32 y, const xtd::drawing::color &color) -> void
Sets the color of the specified pixel in this xtd::drawing::bitmap.
bitmap(const xtd::string &filename, bool use_icm)
Initializes a new instance of the bitmap class from the specified file.
auto lock_bits(const xtd::drawing::rectangle &rect, xtd::drawing::imaging::image_lock_mode flags, xtd::drawing::imaging::pixel_format format) -> xtd::drawing::imaging::bitmap_data
Locks a xtd::drawing::bitmap into system memory.
auto get_pixel(xtd::int32 x, xtd::int32 y) const -> drawing::color
Gets the color of the specified pixel in this bitmap.
bitmap(const xtd::string &filename)
Initializes a new instance of the bitmap class from the specified file.
static bitmap empty
Represent an empty bitmap.
Definition bitmap.hpp:32
auto get_hicon() const -> xtd::intptr
Returns the handle to an icon.
bitmap(xtd::int32 width, xtd::int32 height, xtd::int32 stride, xtd::drawing::imaging::pixel_format format, xtd::intptr scan0)
Initializes a new instance of the xtd::drawing::bitmap class with the specified size.
bitmap(const xtd::drawing::image &original, const xtd::drawing::rectangle &new_rect)
Initializes a new instance of the bitmap class from the specified existing image, resizing or croppin...
bitmap(const xtd::drawing::image &original, xtd::int32 width, xtd::int32 height)
Initializes a new instance of the bitmap class from the specified existing image, scaled to the speci...
auto set_resolution(xtd::int32 x_dpi, xtd::int32 y_dpi) -> void
Sets the resolution for this xtd::drawing::bitmap.
bitmap clone(const xtd::drawing::rectangle_f &rect) const
Creates a copy of the section of this xtd::drawing::bitmap defined with a specified rectangle.
bitmap(const xtd::drawing::image &original)
Initializes a new instance of the bitmap class from the specified existing image.
bitmap(xtd::int32 width, xtd::int32 height, xtd::drawing::imaging::pixel_format format)
Initializes a new instance of the xtd::drawing::bitmap class with the specified size.
auto get_hbitmap() const -> xtd::intptr
Creates a GDI bitmap object from this xtd::drawing::bitmap.
bitmap(const xtd::drawing::image &original, const xtd::drawing::size &new_size)
Initializes a new instance of the bitmap class from the specified existing image, scaled to the speci...
bitmap(xtd::int32 width, xtd::int32 height, const xtd::drawing::graphics &g)
Initializes a new instance of the xtd::drawing::bitmap class with the specified size and with the res...
bitmap(std::istream &stream, bool use_icm)
Initializes a new instance of the bitmap class from the specified data stream.
bitmap(xtd::int32 width, xtd::int32 height)
Initializes a new instance of the xtd::drawing::bitmap class with the specified size.
bitmap(const xtd::drawing::size &size)
Initializes a new instance of the xtd::drawing::bitmap class with the specified size.
static auto from_hicon(xtd::intptr icon) -> bitmap
Creates a xtd::drawing::bitmap from a Windows handle to an icon.
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:67
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.hpp:28
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
auto width() const noexcept -> xtd::int32
Gets the width, in pixels, of this image.
auto size() const noexcept -> const xtd::drawing::size &
Gets the width and height, in pixels, of this image.
auto flags() const noexcept -> xtd::int32
Gets attribute flags for the pixel data of this xtd::drawing::image.
auto pixel_format() const noexcept -> xtd::drawing::imaging::pixel_format
Gets the pixel format for this image.
auto height() const noexcept -> xtd::int32
Gets the height, in pixels, of this image.
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
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition pixel_format.hpp:23
Contains xtd::drawing::image class.
Contains xtd::drawing::imaging::image_lock_mode class.
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
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 integers, which specify a height and width.
Definition size.hpp:32