Microsoft.Graphics.Canvas.Effects Namespace |
This namespace provides image manipulation effects such as blur and saturation.
Effects are a type of ICanvasImage, so they can be displayed using DrawImage(ICanvasImage) or CanvasImageBrush. The source data fed into an effect is also of type ICanvasImage, which allows you to connect either a bitmap or another effect. Complex image processing graphs can be constructed by chaining many effects together.
Class | Description | |
---|---|---|
AlphaMaskEffect | [Win10_14393]
Changes the opacity of an image by applying an alpha mask from a second image.
| |
ArithmeticCompositeEffect |
Combines two images using a flexible equation that can
be configured to perform computations such as addition,
subtraction, multiplication, or interpolation.
| |
AtlasEffect | [NoComposition]
Outputs a specified region from an atlas bitmap.
| |
BlendEffect |
Creates a blend effect that combines two images.
| |
BorderEffect |
Extends an image to infinite size, specifying whether areas beyond its original
extents are filled by repeating pixels from the edges of the image,
wrapping pixels from the opposite edge of the image, or mirroring the image.
| |
BrightnessEffect | [NoComposition]
Alters the brightness of an image.
| |
ChromaKeyEffect | [NoComposition]
Replaces a specified color with transparency.
| |
ColorManagementEffect | [NoComposition] Transforms an image from one color profile to another. | |
ColorManagementProfile | Describes an ICC (International Color Consortium), simple, or extended color profile. | |
ColorMatrixEffect |
Alters the colors of an image by applying a 5x4 transform matrix.
| |
ColorSourceEffect |
Generates an image containing a solid color, which can be used as input
to other effects (for instance to specify a background color).
| |
CompositeEffect |
Combines two or more images.
| |
ContrastEffect |
Increases or decreases the contrast of an image.
| |
ConvolveMatrixEffect | [NoComposition]
Applies an arbitrary 2D filter kernel to an image.
This can perform operations such as edge detect, emboss, sharpen, or blur.
| |
CropEffect | [NoComposition]
Crops an image, outputting only a specified region.
| |
CrossFadeEffect | [Win10_14393]
Cross-fades (interpolates) between two images.
| |
DirectionalBlurEffect | [NoComposition]
Blurs an image in a particular direction.
You can use this effect to make an image look as if
it is in motion or to emphasize an animated image.
| |
DiscreteTransferEffect | [NoComposition]
Alters the colors of an image using a quantized transfer function defined by an arbitrary lookup table.
| |
DisplacementMapEffect | [NoComposition]
Displaces the pixels of an input image by the intensity values of a second image.
| |
DistantDiffuseEffect |
Lighting effect creates an image that appears to be an illuminated non-reflective
surface. This effect uses the alpha channel as a height map, and lights it with
an infinitely distant light source (such as the sun). Note, height map is not
supported with Composition.
| |
DistantSpecularEffect |
Lighting effect creates an image that appears to be a reflective surface. This
effect uses the alpha channel as a height map, and lights it with an infinitely
distant light source (such as the sun) applying the specular portion of the Phong
lighting model. Note, height map is not supported with Composition.
| |
DpiCompensationEffect | [NoComposition]
Scales a bitmap to match a different DPI. This is usually handled automatically,
but DpiCompensationEffect can also be used directly if you want to customize the
compensation behavior.
| |
EdgeDetectionEffect | [NoComposition]
Filters out the content of an image leaving lines at the edges of contrasting sections.
| |
EffectTransferTable3D | A three dimensional lookup table, for use with TableTransfer3DEffect. | |
EmbossEffect | [NoComposition]
Creates a grayscale version of an image that appears as though it has been stamped into paper.
| |
ExposureEffect |
Increases or decreases the exposure of an image.
| |
GammaTransferEffect |
Alters the colors of an image by applying a per-channel gamma transfer function.
| |
GaussianBlurEffect |
Creates a blur effect based on the Gaussian function over the entire input image.
| |
GrayscaleEffect |
Converts an image to monochromatic gray.
| |
HighlightsAndShadowsEffect | [NoComposition]
Adjusts the highlights and shadows of an image.
| |
HueRotationEffect |
Alters the color of an image by rotating its hue values.
| |
HueToRgbEffect | [NoComposition]
Converts an HSV (hue, saturation, value) or HSL (hue, saturation, lightness) image to RGB color space.
| |
InvertEffect |
Inverts the colors of an image.
| |
LinearTransferEffect | [NoComposition]
Alters the colors of an image by applying a per-channel linear transfer function.
| |
LuminanceToAlphaEffect |
Generates an image with alpha channel set to the luminance of the source image, and
color channels set to 0. Use it to make a semitransparent overlay based on the
brightness of the source image.
| |
MorphologyEffect | [NoComposition]
Thins or thickens edge boundaries in an image. This effect uses a filter kernel
that is 2 times the size you specify. The kernel is centered on the pixel being
calculated, and returns the maximum value in the kernel (if dilating) or minimum
value (if eroding).
| |
OpacityEffect | [Win10_14393]
Changes the opacity (alpha) of an image.
| |
OpacityMetadataEffect | [NoComposition]
Marks an area of an input image as opaque, which can enable internal rendering optimizations.
| |
PixelShaderEffect | [NoComposition] Custom image effect which uses a pixel shader to apply arbitrary user-defined processing. | |
PointDiffuseEffect |
Lighting effect creates an image that appears to be an illuminated non-reflective
surface. This effect uses the alpha channel as a height map, and lights it with a
point light source. Note, height map is not supported with Composition.
| |
PointSpecularEffect |
Lighting effect creates an image that appears to be a reflective surface. This
effect uses the alpha channel as a height map, and lights it with a point light
source applying the specular portion of the Phong lighting model. Note, height
map is not supported with Composition.
| |
PosterizeEffect | [NoComposition]
Reduces the number of unique colors in an image.
| |
PremultiplyEffect | [NoComposition]
Converts an image from unpremultiplied to premultiplied alpha format.
| |
RgbToHueEffect | [NoComposition]
Converts an RGB image to HSV (hue, saturation, value) or HSL (hue, saturation, lightness) color space.
| |
SaturationEffect |
Alters the saturation of an image.
| |
ScaleEffect | [NoComposition]
Resizes an image.
| |
SepiaEffect |
Converts an image to sepia tones.
| |
ShadowEffect | [NoComposition]
Generates a shadow from the alpha channel of an image. The shadow is more
opaque for higher alpha values and more transparent for lower alpha
values. You can set the amount of blur and the color of the shadow.
| |
SharpenEffect | [NoComposition]
Sharpens the image.
| |
SpotDiffuseEffect |
Lighting effect creates an image that appears to be an illuminated non-reflective
surface where the light source is limited to a directed cone of light. This
effect uses the alpha channel as a height map, and lights it with a point light
source. Note, height map is not supported with Composition.
| |
SpotSpecularEffect |
Lighting effect creates an image that appears to be a reflective surface where
the light source is limited to a directed cone of light. This effect uses the
alpha channel as a height map, and lights it with a point light source applying
the specular portion of the Phong lighting model. Note, height map is not supported
with Composition.
| |
StraightenEffect | [NoComposition]
Rotates and optionally scales an image.
| |
TableTransfer3DEffect | [NoComposition]
Alters the colors of an image using a transfer function defined by an arbitrary three dimensional lookup table.
| |
TableTransferEffect | [NoComposition]
Alters the colors of an image using a transfer function defined by arbitrary per-channel lookup tables.
| |
TemperatureAndTintEffect |
Adjusts the temperature and/or tint of an image.
| |
TileEffect | [NoComposition]
Repeats the specified region of an image.
| |
TintEffect | [Win10_14393]
Tints an image using a specified color value.
| |
Transform2DEffect |
Applies a 2D affine transform matrix to an image.
| |
Transform3DEffect | [NoComposition]
Applies an arbitrary 4x4 transform matrix to an image.
| |
TurbulenceEffect | [NoComposition]
Generates an image using the Perlin noise function.
| |
UnPremultiplyEffect | [NoComposition]
Converts an image from premultiplied to unpremultiplied alpha format.
| |
VignetteEffect | [NoComposition]
Fades out the edges of an image.
|
Structure | Description | |
---|---|---|
ColorManagementSimpleProfile | [Win10_15063] Simple description of a color space. | |
Matrix5x4 | A 5x4 matrix, used for color transforms.
See ColorMatrixEffect
for usage examples. |
Interface | Description | |
---|---|---|
ICanvasEffect | Defines common functionality that is shared by all Win2D effects. |
Enumeration | Description | |
---|---|---|
BlendEffectMode | The blend mode used for the effect. | |
ColorManagementEffectQuality | Specifies quality vs. performance tradeoff for ColorManagementEffect. | |
ColorManagementGamma | [Win10_15063] Describes the gamma of a ColorManagementSimpleProfile. | |
ColorManagementProfileType | Describes the type of a ColorManagementProfile. | |
ColorManagementRenderingIntent | Specifies the ICC (International Color Consortium) rendering intent for use by ColorManagementEffect. | |
EdgeDetectionEffectMode | Specifies what type of filter kernel to use for edge detection. | |
EffectBorderMode | Enumeration type that specifies how to process pixels that lie outside the input image. | |
EffectChannelSelect | Specifies which color channel of an image to use as source data for effect processing. | |
EffectHueColorSpace | Specifies the color space used by HueToRgbEffect and RgbToHueEffect. | |
EffectOptimization | Enumeration type that specifies speed vs. quality trade-off. | |
ExtendedColorSpace | [Win10_15063] Defines an extended set of color spaces. | |
MorphologyEffectMode | Configures behavior of the morphology filter kernel. | |
SamplerCoordinateMapping |
Describes what texture coordinates the shader will use when sampling an input texture.
| |
TurbulenceEffectNoise | Specifies how turbulence noise should be generated. |