Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Public Static Methods | |
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, upper color and lower color. | |
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, upper color and lower color. | |
static void | blur (xtd::drawing::image &image, int32 radius) |
Blur the specified image with the specified radius. | |
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 void | brightness (xtd::drawing::image &image, double percent) |
Change the brightness of the specified image with specified percent. | |
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 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 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 the specified percent. | |
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 | 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 color. | |
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 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 | contrast (xtd::drawing::image &image, double percent) |
Change the contrast 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 | crop (xtd::drawing::image &image, const xtd::drawing::rectangle &rectangle) |
Crops image with of the specified image with specified recatngle. | |
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 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 | 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 void | disabled (xtd::drawing::image &image, float brightness) |
Disabled the specified image with specified brightness. | |
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 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, blur radius, and the shadow 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, blur radius, and the shadow color. | |
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 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, g, ad b corrections. | |
static void | grayscale (xtd::drawing::image &image) |
Converts into grayscale of the specified image. | |
static xtd::drawing::image | grayscale (const xtd::drawing::image &image) |
Creates a new image with grayscale colors of the specified image. | |
static void | grayscale (xtd::drawing::image &image, double percent) |
Converts into grayscale of the specified image with specified percent factor. | |
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 void | hue_rotate (xtd::drawing::image &image, int angle) |
Rotate hue colors of the specified image with specified angle. | |
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 void | invert (xtd::drawing::image &image) |
Inverts colors of the specified image. | |
static xtd::drawing::image | invert (const xtd::drawing::image &image) |
Creates a new image with inverted 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 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 void | opacity (xtd::drawing::image &image, double percent) |
Changes the opacity level of the specified image with specified percent factor. | |
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 void | rescale (xtd::drawing::image &image, const xtd::drawing::size &size) |
Rescale image with of the specified image with specified size. | |
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 | resize (xtd::drawing::image &image, const xtd::drawing::size &size) |
Resize image with of the specified image with specified size. | |
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 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. | |
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 specified rotate flip type. | |
static void | saturate (xtd::drawing::image &image, double percent) |
Change the saturate of the specified image with specified percent factor. | |
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 void | sepia (xtd::drawing::image &image) |
Converts into sepia colors of the specified image. | |
static xtd::drawing::image | sepia (const xtd::drawing::image &image) |
Creates a new image with sepia colors of the specified image. | |
static void | sepia (xtd::drawing::image &image, double percent) |
Converts into sepia colors of the specified image with specified percent factor. | |
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 void | threshold (xtd::drawing::image &image, int32 threshold) |
Converts into black and white colors 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 |
Converts into lower and upper colors of the specified image with specified threshold, upper color and lower color.
image | The image to convert into lower and upper colors. |
threshold | The threshold value (from 0 to 765). |
upper_color | The color used when RGB color is upper the threshold value. |
lower_color | The color used when RGB color is under or equal the threshold value. |
Original | Converted |
---|---|
|
static |
Creates a new lower and upper image of the specified image with specified threshold, upper color and lower color.
image | The image to convert into lower and upper colors. |
threshold | The threshold value (from 0 to 765). |
upper_color | The color used when RGB color is upper the threshold value. |
lower_color | The color used when RGB color is under or equal the threshold value. |
Original | Converted |
---|---|
|
static |
Blur the specified image with the specified radius.
image | The image to blur. |
radius | The radius of the blur in pixels. |
0
, there will be no blurring. Original | Converted |
---|---|
|
static |
Creates a new blurred image of the specified image with the specified radius.
image | The image to blur. |
radius | The radius of the blur in pixels. |
0
, there will be no blurring. Original | Converted |
---|---|
|
static |
Change the brightness of the specified image with specified percent.
image | The image to brightness. |
percent | The percent factor in %. |
0.0
will make the image completely black. 1.0
is default and represents the original image. Values over 1.0
will provide brighter results. Original | Converted |
---|---|
|
static |
Creates a new image with brightness changed of the specified image with specified percent.
image | The image to brightness. |
percent | The percent factor in % (from 0.0 to 2.0). |
0.0
will make the image completely black. 1.0
is default and represents the original image. Values over 1.0
will provide brighter results. Original | Converted |
---|---|
|
static |
Add / remove the specified color from the specified image with the specified percent.
image | The image to update. |
color | The color to add / remove. |
percent | The percent factor in % (from 0.0 to 1.0). |
Original | Converted |
---|---|
|
static |
Create a new image with the specified color that will be added/removed from the specified image with the specified percent.
image | The image to update. |
color | The color to add / remove. |
percent | The percent factor in % (from 0.0 to 2.0). |
Original | Converted |
---|---|
|
staticnoexcept |
Filters image with specified color and replaces all other colors with other specified color.
image | The image to filter color. |
threshold | The threshold value (from 0 to 765). |
extraction_color | The extraction color. |
other_pixels_color | The other pixels color. |
Original | Converted |
---|---|
|
staticnoexcept |
Creates a new filtered image with specified color and replaces all other colors with other specified color.
image | The image to filter color. |
threshold | The threshold value (from 0 to 765). |
extraction_color | The extraction color. |
other_pixels_color | The other pixels color. |
Original | Converted |
---|---|
|
staticnoexcept |
Replaces the specified source color with the new color.
image | The image to filter. |
threshold | The threshold value (from 0 to 765). |
source_color | The source color. |
new_color | The new color. |
Original | Converted |
---|---|
|
staticnoexcept |
Creates a new image where the specified source color is replaced by the new color.
image | The image to filter. |
threshold | The threshold value (from 0 to 765). |
source_color | The source color. |
new_color | The new color. |
Original | Converted |
---|---|
|
static |
Change the contrast of the specified image with specified percent factor.
image | The image to change contrast. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
returns the original image, while the other values give a contrasting image. Original | Converted |
---|---|
|
static |
Creates a new contrasting image of the specified image with specified percent factor.
image | The image to change contrast. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
returns the original image, while the other values give a contrasting image. Original | Converted |
---|---|
|
static |
Crops image with of the specified image with specified recatngle.
image | The image to change the size. |
size | The new size. |
Original | Converted |
---|---|
|
static |
Creates a new cropped image of the specified image with specified rectangle.
image | The image to crop. |
rectangle | The rectangle of the crop. |
Original | Converted |
---|---|
|
static |
Disable the specified image with specified reference background color.
image | The image to disble. |
back_color | The reference background color. |
Original | Converted |
---|---|
|
static |
Creates a new disabled image of the specified image with specified reference background color.
image | The image to disble. |
back_color | The reference background color. |
Original | Converted |
---|---|
|
static |
Disabled the specified image with specified brightness.
image | The image to dissable. |
brightness | The brightness of the reference background color. |
Original | Converted |
---|---|
|
static |
Creates a new disabled image of the specified image with specified brightness.
image | The image to dissable. |
brightness | The brightness of the reference background color. |
Original | Converted |
---|---|
|
static |
Add drop shadow to the specified image, with specified horizontal and vertical shadow, blur radius, and the shadow color.
image | The image to add drop shadow. |
horizontal_shadow | Specifies a pixel value for the horizontal shadow in pixels. Negative values place the shadow to the left of the image. |
vertical_shadow | Specifies a pixel value for the vertical shadow in pixels. Negative values place the shadow to the left of the image. |
blur | Adds a blur effect to the shadow in pixels. A larger value will create more blur (the shadow becomes bigger and lighter). Negative values are not allowed. If no value is specified, 0 is used (the shadow's edge is sharp). |
color | Adds a color to the shadow. |
Original | Converted |
---|---|
|
static |
Create a new imgae with drop shadow with the specified image, horizontal and vertical shadow, blur radius, and the shadow color.
image | The image to add drop shadow. |
horizontal_shadow | Specifies a pixel value for the horizontal shadow in pixels. Negative values place the shadow to the left of the image. |
vertical_shadow | Specifies a pixel value for the vertical shadow in pixels. Negative values place the shadow to the left of the image. |
blur | Adds a blur effect to the shadow in pixels. A larger value will create more blur (the shadow becomes bigger and lighter). Negative values are not allowed. If no value is specified, 0 is used (the shadow's edge is sharp). |
color | Adds a color to the shadow. |
Original | Converted |
---|---|
|
static |
Change the gamma of the specified image with specified r, g, ad b corrections.
image | The image to change the gamma. |
r | The red correction from 0.1 to 5. |
g | The green correction from 0.1 to 5. |
b | The blue correction from 0.1 to 5. |
Original | Converted |
---|---|
|
static |
Creates a new image with gamma correction of the specified image with specified r, g, ad b corrections.
image | The image to change the gamma. |
r | The red correction from 0.1 to 5. |
g | The green correction from 0.1 to 5. |
b | The blue correction from 0.1 to 5. |
Original | Converted |
---|---|
|
static |
Converts into grayscale of the specified image.
image | The image to be transformed into grayscale. |
Original | Converted |
---|---|
|
static |
Creates a new image with grayscale colors of the specified image.
image | The image to be transformed into grayscale. |
Original | Converted |
---|---|
|
static |
Converts into grayscale of the specified image with specified percent factor.
image | The image to be transformed into grayscale. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
will make the color completely gray, while 0.0
return the original image. Original | Converted |
---|---|
|
static |
Creates a new image with grayscale colors of the specified image with specified percent factor.
image | The image to be transformed into grayscale. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
will make the color completely gray, while 0.0
return the original image. Original | Converted |
---|---|
|
static |
Rotate hue colors of the specified image with specified angle.
image | The image to rotate hue colors. |
angle | The angle in degrees (form 0 to 360). |
Original | Converted |
---|---|
|
static |
Creates a new image with rotated hue colors of the specified image with specified angle.
image | The image to rotate hue colors. |
angle | The angle in degrees (form 0 to 360). |
Original | Converted |
---|---|
|
static |
Inverts colors of the specified image.
image | The image to invert colors. |
Original | Converted |
---|---|
|
static |
Creates a new image with inverted colors of the specified image.
image | The image to invert colors. |
Original | Converted |
---|---|
|
static |
Inverts colors of the specified image with specified percent factor.
image | The image to invert colors. |
percent | The percent factor in % (from 0.0 to 1.0). |
0.0
will represents the original image. 1.0
will provide image with inverted colors. Original | Converted |
---|---|
|
static |
Creates a new image with inverted colors of the specified image with specified percent factor.
image | The image to invert colors. |
percent | The percent factor in % (from 0.0 to 1.0). |
0.0
will represents the original image. 1.0
will provide image with inverted colors. Original | Converted |
---|---|
|
static |
Changes the opacity level of the specified image with specified percent factor.
image | The image to change the opacity level. |
percent | The percent factor in % (from 0.0 to 1.0). |
0.0
will represents a transparent image. 1.0
will provide the original image. Original | Converted |
---|---|
|
static |
Creates a new image with opacity level of the specified image with specified percent factor.
image | The image to change the opacity level. |
percent | The percent factor in % (from 0.0 to 1.0). |
0.0
will represents a transparent image. 1.0
will provide the original image. Original | Converted |
---|---|
|
static |
Rescale image with of the specified image with specified size.
image | The image to change the size. |
size | The new size. |
Original | Converted |
---|---|
|
static |
Creates a new resacaling image with new size of the specified image with specified size.
image | The image to change the size. |
size | The new size. |
Original | Converted |
---|---|
|
static |
Resize image with of the specified image with specified size.
image | The image to change the size. |
size | The new size. |
Original | Converted |
---|---|
|
static |
Creates a new resized image with new size of the specified image with specified size.
image | The image to change the size. |
size | The new size. |
Original | Converted |
---|---|
|
static |
Rotates, flips, or rotates and flips of the specified image with specified rotate flip type.
image | The image to be rotated, flipped or rotated and flipped. |
rotate_flip_type | A xtd::drawing::rotate_flip_type member that specifies the type of rotation and flip to apply to the image. |
Original | Converted |
---|---|
|
static |
Creates a new image with rotations, flips, or rotations and flips of the specified image with specified rotate flip type.
image | The image to be rotated, flipped or rotated and flipped. |
rotate_flip_type | A xtd::drawing::rotate_flip_type member that specifies the type of rotation and flip to apply to the image. |
Original | Converted |
---|---|
|
static |
Change the saturate of the specified image with specified percent factor.
image | The image to change saturation. |
percent | The percent factor in %. |
1.0
returns the original image, while the other values give a saturate image. Original | Converted |
---|---|
|
static |
Creates a new saturate image of the specified image with specified percent factor.
image | The image to change saturation. |
percent | The percent factor in %. |
1.0
returns the original image, while the other values give a saturate image. Original | Converted |
---|---|
|
static |
Converts into sepia colors of the specified image.
image | The image to be transformed into sepia. |
Original | Converted |
---|---|
|
static |
Creates a new image with sepia colors of the specified image.
image | The image to be transformed into sepia. |
Original | Converted |
---|---|
|
static |
Converts into sepia colors of the specified image with specified percent factor.
image | The image to be transformed into sepia. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
will make the color completely sepia, while 0.0
return the original image. Original | Converted |
---|---|
|
static |
Creates a new image with sepia colors of the specified image with specified percent factor.
image | The image to be transformed into sepia. |
percent | The percent factor in % (from 0.0 to 1.0). |
1.0
will make the color completely sepia, while 0.0
return the original image. Original | Converted |
---|---|
|
static |
Converts into black and white colors of the specified image with specified threshold.
image | The image to convert into black and white colors. |
threshold | The threshold value (from 0 to 765). |
Original | Converted |
---|---|
|
static |
Creates a new black and white image of the specified image with specified threshold.
image | The image to convert into black and white colors. |
threshold | The threshold value (from 0 to 765). |
Original | Converted |
---|---|