xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::image_converter Class Referencefinal
Inheritance diagram for xtd::drawing::image_converter:
xtd::static_object

Definition

Converts images to and from xtd::drawing::image class. This class cannot be inherited.

Converts images to and from xtd::drawing::image class. This class cannot be inherited.
Definition image_converter.hpp:29
#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
Inheritance
xtd::static_objectxtd::drawing::image_converter
Namespace
xtd::drawing
Library
xtd.drawing

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.
 

Member Function Documentation

◆ bitonal() [1/2]

static void xtd::drawing::image_converter::bitonal ( xtd::drawing::image image,
int32  threshold,
const color upper_color,
const color lower_color 
)
static

Converts into lower and upper colors of the specified image with specified threshold, upper color and lower color.

Parameters
imageThe image to convert into lower and upper colors.
thresholdThe threshold value (from 0 to 765).
upper_colorThe color used when RGB color is upper the threshold value.
lower_colorThe color used when RGB color is under or equal the threshold value.
Appearance
Original Converted

◆ bitonal() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::bitonal ( const xtd::drawing::image image,
int32  threshold,
const color upper_color,
const color lower_color 
)
static

Creates a new lower and upper image of the specified image with specified threshold, upper color and lower color.

Parameters
imageThe image to convert into lower and upper colors.
thresholdThe threshold value (from 0 to 765).
upper_colorThe color used when RGB color is upper the threshold value.
lower_colorThe color used when RGB color is under or equal the threshold value.
Returns
The converted image.
Appearance
Original Converted

◆ blur() [1/2]

static void xtd::drawing::image_converter::blur ( xtd::drawing::image image,
int32  radius 
)
static

Blur the specified image with the specified radius.

Parameters
imageThe image to blur.
radiusThe radius of the blur in pixels.
Remarks
If the radius is 0, there will be no blurring.
Appearance
Original Converted

◆ blur() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::blur ( const xtd::drawing::image image,
int32  radius 
)
static

Creates a new blurred image of the specified image with the specified radius.

Parameters
imageThe image to blur.
radiusThe radius of the blur in pixels.
Returns
The converted image.
Remarks
If the radius is 0, there will be no blurring.
Appearance
Original Converted

◆ brightness() [1/2]

static void xtd::drawing::image_converter::brightness ( xtd::drawing::image image,
double  percent 
)
static

Change the brightness of the specified image with specified percent.

Parameters
imageThe image to brightness.
percentThe percent factor in %.
Remarks
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.
Appearance
Original Converted

◆ brightness() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::brightness ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with brightness changed of the specified image with specified percent.

Parameters
imageThe image to brightness.
percentThe percent factor in % (from 0.0 to 2.0).
Returns
The converted image.
Remarks
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.
Appearance
Original Converted

◆ color() [1/2]

static void xtd::drawing::image_converter::color ( xtd::drawing::image image,
const xtd::drawing::color color,
double  percent 
)
static

Add / remove the specified color from the specified image with the specified percent.

Parameters
imageThe image to update.
colorThe color to add / remove.
percentThe percent factor in % (from 0.0 to 1.0).
Appearance
Original Converted

◆ color() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::color ( const xtd::drawing::image image,
const xtd::drawing::color color,
double  percent 
)
static

Create a new image with the specified color that will be added/removed from the specified image with the specified percent.

Parameters
imageThe image to update.
colorThe color to add / remove.
percentThe percent factor in % (from 0.0 to 2.0).
Returns
The converted image.
Appearance
Original Converted

◆ color_extraction() [1/2]

static void xtd::drawing::image_converter::color_extraction ( xtd::drawing::image image,
int32  threshold,
const drawing::color extraction_color,
const xtd::drawing::color other_pixels_color 
)
staticnoexcept

Filters image with specified color and replaces all other colors with other specified color.

Parameters
imageThe image to filter color.
thresholdThe threshold value (from 0 to 765).
extraction_colorThe extraction color.
other_pixels_colorThe other pixels color.
Returns
The converted image.
Appearance
Original Converted

◆ color_extraction() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::color_extraction ( const xtd::drawing::image image,
int32  threshold,
const drawing::color extraction_color,
const xtd::drawing::color other_pixels_color 
)
staticnoexcept

Creates a new filtered image with specified color and replaces all other colors with other specified color.

Parameters
imageThe image to filter color.
thresholdThe threshold value (from 0 to 765).
extraction_colorThe extraction color.
other_pixels_colorThe other pixels color.
Returns
The converted image.
Appearance
Original Converted

◆ color_substitution() [1/2]

static void xtd::drawing::image_converter::color_substitution ( xtd::drawing::image image,
int32  threshold,
const drawing::color source_color,
const xtd::drawing::color new_color 
)
staticnoexcept

Replaces the specified source color with the new color.

Parameters
imageThe image to filter.
thresholdThe threshold value (from 0 to 765).
source_colorThe source color.
new_colorThe new color.
Appearance
Original Converted

◆ color_substitution() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::color_substitution ( const xtd::drawing::image image,
int32  threshold,
const drawing::color source_color,
const xtd::drawing::color new_color 
)
staticnoexcept

Creates a new image where the specified source color is replaced by the new color.

Parameters
imageThe image to filter.
thresholdThe threshold value (from 0 to 765).
source_colorThe source color.
new_colorThe new color.
Returns
The converted image.
Appearance
Original Converted

◆ contrast() [1/2]

static void xtd::drawing::image_converter::contrast ( xtd::drawing::image image,
double  percent 
)
static

Change the contrast of the specified image with specified percent factor.

Parameters
imageThe image to change contrast.
percentThe percent factor in % (from 0.0 to 1.0).
Remarks
Thus, 1.0 returns the original image, while the other values give a contrasting image.
Appearance
Original Converted

◆ contrast() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::contrast ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new contrasting image of the specified image with specified percent factor.

Parameters
imageThe image to change contrast.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
Thus, 1.0 returns the original image, while the other values give a contrasting image.
Appearance
Original Converted

◆ crop() [1/2]

static void xtd::drawing::image_converter::crop ( xtd::drawing::image image,
const xtd::drawing::rectangle rectangle 
)
static

Crops image with of the specified image with specified recatngle.

Parameters
imageThe image to change the size.
sizeThe new size.
Appearance
Original Converted

◆ crop() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::crop ( const xtd::drawing::image image,
const xtd::drawing::rectangle rectangle 
)
static

Creates a new cropped image of the specified image with specified rectangle.

Parameters
imageThe image to crop.
rectangleThe rectangle of the crop.
Returns
The converted image.
Appearance
Original Converted

◆ disabled() [1/4]

static void xtd::drawing::image_converter::disabled ( xtd::drawing::image image,
const xtd::drawing::color back_color 
)
static

Disable the specified image with specified reference background color.

Parameters
imageThe image to disble.
back_colorThe reference background color.
Appearance
Original Converted

◆ disabled() [2/4]

static xtd::drawing::image xtd::drawing::image_converter::disabled ( const xtd::drawing::image image,
const xtd::drawing::color back_color 
)
static

Creates a new disabled image of the specified image with specified reference background color.

Parameters
imageThe image to disble.
back_colorThe reference background color.
Returns
The converted image.
Appearance
Original Converted

◆ disabled() [3/4]

static void xtd::drawing::image_converter::disabled ( xtd::drawing::image image,
float  brightness 
)
static

Disabled the specified image with specified brightness.

Parameters
imageThe image to dissable.
brightnessThe brightness of the reference background color.
Appearance
Original Converted

◆ disabled() [4/4]

static xtd::drawing::image xtd::drawing::image_converter::disabled ( const xtd::drawing::image image,
float  brightness 
)
static

Creates a new disabled image of the specified image with specified brightness.

Parameters
imageThe image to dissable.
brightnessThe brightness of the reference background color.
Returns
The converted image.
Appearance
Original Converted

◆ drop_shadow() [1/2]

static void xtd::drawing::image_converter::drop_shadow ( xtd::drawing::image image,
int32  horizontal_shadow,
int32  vertical_shadow,
int32  blur,
const xtd::drawing::color color 
)
static

Add drop shadow to the specified image, with specified horizontal and vertical shadow, blur radius, and the shadow color.

Parameters
imageThe image to add drop shadow.
horizontal_shadowSpecifies a pixel value for the horizontal shadow in pixels. Negative values place the shadow to the left of the image.
vertical_shadowSpecifies a pixel value for the vertical shadow in pixels. Negative values place the shadow to the left of the image.
blurAdds 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).
colorAdds a color to the shadow.
Appearance
Original Converted

◆ drop_shadow() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::drop_shadow ( const xtd::drawing::image image,
int32  horizontal_shadow,
int32  vertical_shadow,
int32  blur,
const xtd::drawing::color color 
)
static

Create a new imgae with drop shadow with the specified image, horizontal and vertical shadow, blur radius, and the shadow color.

Parameters
imageThe image to add drop shadow.
horizontal_shadowSpecifies a pixel value for the horizontal shadow in pixels. Negative values place the shadow to the left of the image.
vertical_shadowSpecifies a pixel value for the vertical shadow in pixels. Negative values place the shadow to the left of the image.
blurAdds 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).
colorAdds a color to the shadow.
Appearance
Original Converted

◆ gamma_correction() [1/2]

static void xtd::drawing::image_converter::gamma_correction ( xtd::drawing::image image,
double  r,
double  g,
double  b 
)
static

Change the gamma of the specified image with specified r, g, ad b corrections.

Parameters
imageThe image to change the gamma.
rThe red correction from 0.1 to 5.
gThe green correction from 0.1 to 5.
bThe blue correction from 0.1 to 5.
Appearance
Original Converted

◆ gamma_correction() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::gamma_correction ( const xtd::drawing::image image,
double  r,
double  g,
double  b 
)
static

Creates a new image with gamma correction of the specified image with specified r, g, ad b corrections.

Parameters
imageThe image to change the gamma.
rThe red correction from 0.1 to 5.
gThe green correction from 0.1 to 5.
bThe blue correction from 0.1 to 5.
Returns
The converted image.
Appearance
Original Converted

◆ grayscale() [1/4]

static void xtd::drawing::image_converter::grayscale ( xtd::drawing::image image)
static

Converts into grayscale of the specified image.

Parameters
imageThe image to be transformed into grayscale.
Appearance
Original Converted

◆ grayscale() [2/4]

static xtd::drawing::image xtd::drawing::image_converter::grayscale ( const xtd::drawing::image image)
static

Creates a new image with grayscale colors of the specified image.

Parameters
imageThe image to be transformed into grayscale.
Returns
The converted image.
Appearance
Original Converted

◆ grayscale() [3/4]

static void xtd::drawing::image_converter::grayscale ( xtd::drawing::image image,
double  percent 
)
static

Converts into grayscale of the specified image with specified percent factor.

Parameters
imageThe image to be transformed into grayscale.
percentThe percent factor in % (from 0.0 to 1.0).
Remarks
Thus, 1.0 will make the color completely gray, while 0.0 return the original image.
Appearance
Original Converted

◆ grayscale() [4/4]

static xtd::drawing::image xtd::drawing::image_converter::grayscale ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with grayscale colors of the specified image with specified percent factor.

Parameters
imageThe image to be transformed into grayscale.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
Thus, 1.0 will make the color completely gray, while 0.0 return the original image.
Appearance
Original Converted

◆ hue_rotate() [1/2]

static void xtd::drawing::image_converter::hue_rotate ( xtd::drawing::image image,
int  angle 
)
static

Rotate hue colors of the specified image with specified angle.

Parameters
imageThe image to rotate hue colors.
angleThe angle in degrees (form 0 to 360).
Appearance
Original Converted

◆ hue_rotate() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::hue_rotate ( const xtd::drawing::image image,
int  angle 
)
static

Creates a new image with rotated hue colors of the specified image with specified angle.

Parameters
imageThe image to rotate hue colors.
angleThe angle in degrees (form 0 to 360).
Returns
The converted image.
Appearance
Original Converted

◆ invert() [1/4]

static void xtd::drawing::image_converter::invert ( xtd::drawing::image image)
static

Inverts colors of the specified image.

Parameters
imageThe image to invert colors.
Appearance
Original Converted

◆ invert() [2/4]

static xtd::drawing::image xtd::drawing::image_converter::invert ( const xtd::drawing::image image)
static

Creates a new image with inverted colors of the specified image.

Parameters
imageThe image to invert colors.
Returns
The converted image.
Appearance
Original Converted

◆ invert() [3/4]

static void xtd::drawing::image_converter::invert ( xtd::drawing::image image,
double  percent 
)
static

Inverts colors of the specified image with specified percent factor.

Parameters
imageThe image to invert colors.
percentThe percent factor in % (from 0.0 to 1.0).
Remarks
0.0 will represents the original image. 1.0 will provide image with inverted colors.
Appearance
Original Converted

◆ invert() [4/4]

static xtd::drawing::image xtd::drawing::image_converter::invert ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with inverted colors of the specified image with specified percent factor.

Parameters
imageThe image to invert colors.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
0.0 will represents the original image. 1.0 will provide image with inverted colors.
Appearance
Original Converted

◆ opacity() [1/2]

static void xtd::drawing::image_converter::opacity ( xtd::drawing::image image,
double  percent 
)
static

Changes the opacity level of the specified image with specified percent factor.

Parameters
imageThe image to change the opacity level.
percentThe percent factor in % (from 0.0 to 1.0).
Remarks
0.0 will represents a transparent image. 1.0 will provide the original image.
Appearance
Original Converted

◆ opacity() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::opacity ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with opacity level of the specified image with specified percent factor.

Parameters
imageThe image to change the opacity level.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
0.0 will represents a transparent image. 1.0 will provide the original image.
Appearance
Original Converted

◆ rescale() [1/2]

static void xtd::drawing::image_converter::rescale ( xtd::drawing::image image,
const xtd::drawing::size size 
)
static

Rescale image with of the specified image with specified size.

Parameters
imageThe image to change the size.
sizeThe new size.
Appearance
Original Converted

◆ rescale() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::rescale ( const xtd::drawing::image image,
const xtd::drawing::size size 
)
static

Creates a new resacaling image with new size of the specified image with specified size.

Parameters
imageThe image to change the size.
sizeThe new size.
Returns
The converted image.
Appearance
Original Converted

◆ resize() [1/2]

static void xtd::drawing::image_converter::resize ( xtd::drawing::image image,
const xtd::drawing::size size 
)
static

Resize image with of the specified image with specified size.

Parameters
imageThe image to change the size.
sizeThe new size.
Appearance
Original Converted

◆ resize() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::resize ( const xtd::drawing::image image,
const xtd::drawing::size size 
)
static

Creates a new resized image with new size of the specified image with specified size.

Parameters
imageThe image to change the size.
sizeThe new size.
Returns
The converted image.
Appearance
Original Converted

◆ rotate_flip() [1/2]

static void xtd::drawing::image_converter::rotate_flip ( xtd::drawing::image image,
xtd::drawing::rotate_flip_type  rotate_flip_type 
)
static

Rotates, flips, or rotates and flips of the specified image with specified rotate flip type.

Parameters
imageThe image to be rotated, flipped or rotated and flipped.
rotate_flip_typeA xtd::drawing::rotate_flip_type member that specifies the type of rotation and flip to apply to the image.
Remarks
The xtd::drawing::image::rotate_flip method rotates the image clockwise.
Appearance
Original Converted

◆ rotate_flip() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::rotate_flip ( const xtd::drawing::image image,
xtd::drawing::rotate_flip_type  rotate_flip_type 
)
static

Creates a new image with rotations, flips, or rotations and flips of the specified image with specified rotate flip type.

Parameters
imageThe image to be rotated, flipped or rotated and flipped.
rotate_flip_typeA xtd::drawing::rotate_flip_type member that specifies the type of rotation and flip to apply to the image.
Returns
The converted image.
Remarks
The xtd::drawing::image::rotate_flip method rotates the image clockwise.
Appearance
Original Converted

◆ saturate() [1/2]

static void xtd::drawing::image_converter::saturate ( xtd::drawing::image image,
double  percent 
)
static

Change the saturate of the specified image with specified percent factor.

Parameters
imageThe image to change saturation.
percentThe percent factor in %.
Remarks
Thus, 1.0 returns the original image, while the other values give a saturate image.
Appearance
Original Converted

◆ saturate() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::saturate ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new saturate image of the specified image with specified percent factor.

Parameters
imageThe image to change saturation.
percentThe percent factor in %.
Returns
The converted image.
Remarks
Thus, 1.0 returns the original image, while the other values give a saturate image.
Appearance
Original Converted

◆ sepia() [1/4]

static void xtd::drawing::image_converter::sepia ( xtd::drawing::image image)
static

Converts into sepia colors of the specified image.

Parameters
imageThe image to be transformed into sepia.
Appearance
Original Converted

◆ sepia() [2/4]

static xtd::drawing::image xtd::drawing::image_converter::sepia ( const xtd::drawing::image image)
static

Creates a new image with sepia colors of the specified image.

Parameters
imageThe image to be transformed into sepia.
Returns
The converted image.
Appearance
Original Converted

◆ sepia() [3/4]

static void xtd::drawing::image_converter::sepia ( xtd::drawing::image image,
double  percent 
)
static

Converts into sepia colors of the specified image with specified percent factor.

Parameters
imageThe image to be transformed into sepia.
percentThe percent factor in % (from 0.0 to 1.0).
Remarks
Thus, 1.0 will make the color completely sepia, while 0.0 return the original image.
Appearance
Original Converted

◆ sepia() [4/4]

static xtd::drawing::image xtd::drawing::image_converter::sepia ( const xtd::drawing::image image,
double  percent 
)
static

Creates a new image with sepia colors of the specified image with specified percent factor.

Parameters
imageThe image to be transformed into sepia.
percentThe percent factor in % (from 0.0 to 1.0).
Returns
The converted image.
Remarks
Thus, 1.0 will make the color completely sepia, while 0.0 return the original image.
Appearance
Original Converted

◆ threshold() [1/2]

static void xtd::drawing::image_converter::threshold ( xtd::drawing::image image,
int32  threshold 
)
static

Converts into black and white colors of the specified image with specified threshold.

Parameters
imageThe image to convert into black and white colors.
thresholdThe threshold value (from 0 to 765).
Appearance
Original Converted

◆ threshold() [2/2]

static xtd::drawing::image xtd::drawing::image_converter::threshold ( const xtd::drawing::image image,
int32  threshold 
)
static

Creates a new black and white image of the specified image with specified threshold.

Parameters
imageThe image to convert into black and white colors.
thresholdThe threshold value (from 0 to 765).
Returns
The converted image.
Appearance
Original Converted

The documentation for this class was generated from the following file: