xtd 0.2.0
Loading...
Searching...
No Matches
image_converter.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.hpp"
6#include "image.hpp"
8#include <xtd/static>
9
11namespace xtd {
13 namespace drawing {
15 class bitmap;
17
30 public:
32
43 static void bitonal(xtd::drawing::image& image, int32 threshold, const color& upper_color, const color& lower_color);
54 static xtd::drawing::image bitonal(const xtd::drawing::image& image, int32 threshold, const color& upper_color, const color& lower_color);
55
64 static void blur(xtd::drawing::image& image, int32 radius);
75
84 static void brightness(xtd::drawing::image& image, double percent);
95
104 static void color(xtd::drawing::image& image, const xtd::drawing::color& color, double percent);
115
126 static void color_extraction(xtd::drawing::image& image, int32 threshold, const drawing::color& extraction_color, const xtd::drawing::color& other_pixels_color) noexcept;
137 static xtd::drawing::image color_extraction(const xtd::drawing::image& image, int32 threshold, const drawing::color& extraction_color, const xtd::drawing::color& other_pixels_color) noexcept;
138
148 static void color_substitution(xtd::drawing::image& image, int32 threshold, const drawing::color& source_color, const xtd::drawing::color& new_color) noexcept;
159 static xtd::drawing::image color_substitution(const xtd::drawing::image& image, int32 threshold, const drawing::color& source_color, const xtd::drawing::color& new_color) noexcept;
160
169 static void contrast(xtd::drawing::image& image, double percent);
180
198
206 static void disabled(xtd::drawing::image& image, const xtd::drawing::color& back_color);
223 static void disabled(xtd::drawing::image& image, float brightness);
232 static xtd::drawing::image disabled(const xtd::drawing::image& image, float brightness);
233
244 static void drop_shadow(xtd::drawing::image& image, int32 horizontal_shadow, int32 vertical_shadow, int32 blur, const xtd::drawing::color& color);
255 static xtd::drawing::image drop_shadow(const xtd::drawing::image& image, int32 horizontal_shadow, int32 vertical_shadow, int32 blur, const xtd::drawing::color& color);
256
266 static void gamma_correction(xtd::drawing::image& image, double r, double g, double b);
277 static xtd::drawing::image gamma_correction(const xtd::drawing::image& image, double r, double g, double b);
278
302 static void grayscale(xtd::drawing::image& image, double percent);
313
321 static void hue_rotate(xtd::drawing::image& image, int angle);
331
355 static void invert(xtd::drawing::image& image, double percent);
365 static xtd::drawing::image invert(const xtd::drawing::image& image, double percent);
366
375 static void opacity(xtd::drawing::image& image, double percent);
385 static xtd::drawing::image opacity(const xtd::drawing::image& image, double percent);
386
404
422
442
451 static void saturate(xtd::drawing::image& image, double percent);
462
486 static void sepia(xtd::drawing::image& image, double percent);
496 static xtd::drawing::image sepia(const xtd::drawing::image& image, double percent);
497
505 static void threshold(xtd::drawing::image& image, int32 threshold);
516 };
517 }
518}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Definition image_converter.hpp:29
static xtd::drawing::image disabled(const xtd::drawing::image &image, float brightness)
Creates a new disabled image of the specified image with specified brightness.
static xtd::drawing::image color_extraction(const xtd::drawing::image &image, int32 threshold, const drawing::color &extraction_color, const xtd::drawing::color &other_pixels_color) noexcept
Creates a new filtered image with specified color and replaces all other colors with other specified ...
static xtd::drawing::image hue_rotate(const xtd::drawing::image &image, int angle)
Creates a new image with rotated hue colors of the specified image with specified angle.
static xtd::drawing::image saturate(const xtd::drawing::image &image, double percent)
Creates a new saturate image of the specified image with specified percent factor.
static xtd::drawing::image grayscale(const xtd::drawing::image &image)
Creates a new image with grayscale colors of the specified image.
static void invert(xtd::drawing::image &image, double percent)
Inverts colors of the specified image with specified percent factor.
static void opacity(xtd::drawing::image &image, double percent)
Changes the opacity level of the specified image with specified percent factor.
static void sepia(xtd::drawing::image &image, double percent)
Converts into sepia colors of the specified image with specified percent factor.
static void color(xtd::drawing::image &image, const xtd::drawing::color &color, double percent)
Add / remove the specified color from the specified image with the specified percent.
static void hue_rotate(xtd::drawing::image &image, int angle)
Rotate hue colors of the specified image with specified angle.
static xtd::drawing::image sepia(const xtd::drawing::image &image, double percent)
Creates a new image with sepia colors of the specified image with specified percent factor.
static xtd::drawing::image contrast(const xtd::drawing::image &image, double percent)
Creates a new contrasting image of the specified image with specified percent factor.
static void brightness(xtd::drawing::image &image, double percent)
Change the brightness of the specified image with specified percent.
static xtd::drawing::image invert(const xtd::drawing::image &image, double percent)
Creates a new image with inverted colors of the specified image with specified percent factor.
static xtd::drawing::image sepia(const xtd::drawing::image &image)
Creates a new image with sepia colors of the specified image.
static void saturate(xtd::drawing::image &image, double percent)
Change the saturate of the specified image with specified percent factor.
static xtd::drawing::image bitonal(const xtd::drawing::image &image, int32 threshold, const color &upper_color, const color &lower_color)
Creates a new lower and upper image of the specified image with specified threshold,...
static xtd::drawing::image threshold(const xtd::drawing::image &image, int32 threshold)
Creates a new black and white image of the specified image with specified threshold.
static void disabled(xtd::drawing::image &image, float brightness)
Disabled the specified image with specified brightness.
static void blur(xtd::drawing::image &image, int32 radius)
Blur the specified image with the specified radius.
static xtd::drawing::image gamma_correction(const xtd::drawing::image &image, double r, double g, double b)
Creates a new image with gamma correction of the specified image with specified r,...
static void grayscale(xtd::drawing::image &image)
Converts into grayscale of the specified image.
static void crop(xtd::drawing::image &image, const xtd::drawing::rectangle &rectangle)
Crops image with of the specified image with specified recatngle.
static void color_extraction(xtd::drawing::image &image, int32 threshold, const drawing::color &extraction_color, const xtd::drawing::color &other_pixels_color) noexcept
Filters image with specified color and replaces all other colors with other specified color.
static xtd::drawing::image drop_shadow(const xtd::drawing::image &image, int32 horizontal_shadow, int32 vertical_shadow, int32 blur, const xtd::drawing::color &color)
Create a new imgae with drop shadow with the specified image, horizontal and vertical shadow,...
static xtd::drawing::image disabled(const xtd::drawing::image &image, const xtd::drawing::color &back_color)
Creates a new disabled image of the specified image with specified reference background color.
static xtd::drawing::image invert(const xtd::drawing::image &image)
Creates a new image with inverted colors of the specified image.
static xtd::drawing::image opacity(const xtd::drawing::image &image, double percent)
Creates a new image with opacity level of the specified image with specified percent factor.
static xtd::drawing::image color_substitution(const xtd::drawing::image &image, int32 threshold, const drawing::color &source_color, const xtd::drawing::color &new_color) noexcept
Creates a new image where the specified source color is replaced by the new color.
static void disabled(xtd::drawing::image &image, const xtd::drawing::color &back_color)
Disable the specified image with specified reference background color.
static xtd::drawing::image crop(const xtd::drawing::image &image, const xtd::drawing::rectangle &rectangle)
Creates a new cropped image of the specified image with specified rectangle.
static xtd::drawing::image resize(const xtd::drawing::image &image, const xtd::drawing::size &size)
Creates a new resized image with new size of the specified image with specified size.
static xtd::drawing::image color(const xtd::drawing::image &image, const xtd::drawing::color &color, double percent)
Create a new image with the specified color that will be added/removed from the specified image with ...
static void grayscale(xtd::drawing::image &image, double percent)
Converts into grayscale of the specified image with specified percent factor.
static void resize(xtd::drawing::image &image, const xtd::drawing::size &size)
Resize image with of the specified image with specified size.
static xtd::drawing::image blur(const xtd::drawing::image &image, int32 radius)
Creates a new blurred image of the specified image with the specified radius.
static xtd::drawing::image grayscale(const xtd::drawing::image &image, double percent)
Creates a new image with grayscale colors of the specified image with specified percent factor.
static xtd::drawing::image brightness(const xtd::drawing::image &image, double percent)
Creates a new image with brightness changed of the specified image with specified percent.
static xtd::drawing::image rescale(const xtd::drawing::image &image, const xtd::drawing::size &size)
Creates a new resacaling image with new size of the specified image with specified size.
static void bitonal(xtd::drawing::image &image, int32 threshold, const color &upper_color, const color &lower_color)
Converts into lower and upper colors of the specified image with specified threshold,...
static xtd::drawing::image rotate_flip(const xtd::drawing::image &image, xtd::drawing::rotate_flip_type rotate_flip_type)
Creates a new image with rotations, flips, or rotations and flips of the specified image with specifi...
static void threshold(xtd::drawing::image &image, int32 threshold)
Converts into black and white colors of the specified image with specified threshold.
static void invert(xtd::drawing::image &image)
Inverts colors of the specified image.
static void rescale(xtd::drawing::image &image, const xtd::drawing::size &size)
Rescale image with of the specified image with specified size.
static void gamma_correction(xtd::drawing::image &image, double r, double g, double b)
Change the gamma of the specified image with specified r, g, ad b corrections.
static void color_substitution(xtd::drawing::image &image, int32 threshold, const drawing::color &source_color, const xtd::drawing::color &new_color) noexcept
Replaces the specified source color with the new color.
static void sepia(xtd::drawing::image &image)
Converts into sepia colors of the specified image.
static void contrast(xtd::drawing::image &image, double percent)
Change the contrast of the specified image with specified percent factor.
static void drop_shadow(xtd::drawing::image &image, int32 horizontal_shadow, int32 vertical_shadow, int32 blur, const xtd::drawing::color &color)
Add drop shadow to the specified image, with specified horizontal and vertical shadow,...
static void rotate_flip(xtd::drawing::image &image, xtd::drawing::rotate_flip_type rotate_flip_type)
Rotates, flips, or rotates and flips of the specified image with specified rotate flip type.
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
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:31
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
int32_t int32
Represents a 32-bit signed integer.
Definition int32.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::rotate_flip_type enum class.
Contains xtd::drawing::image class.