Click or drag to resize
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.

Classes
  ClassDescription
Public classAlphaMaskEffect
[Win10_14393] Changes the opacity of an image by applying an alpha mask from a second image.
Public classArithmeticCompositeEffect
Combines two images using a flexible equation that can be configured to perform computations such as addition, subtraction, multiplication, or interpolation.
Public classAtlasEffect
[NoComposition] Outputs a specified region from an atlas bitmap.
Public classBlendEffect
Creates a blend effect that combines two images.
Public classBorderEffect
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.
Public classBrightnessEffect
[NoComposition] Alters the brightness of an image.
Public classChromaKeyEffect
[NoComposition] Replaces a specified color with transparency.
Public classColorManagementEffect
[NoComposition] Transforms an image from one color profile to another.
Public classColorManagementProfile
Describes an ICC (International Color Consortium), simple, or extended color profile.
Public classColorMatrixEffect
Alters the colors of an image by applying a 5x4 transform matrix.
Public classColorSourceEffect
Generates an image containing a solid color, which can be used as input to other effects (for instance to specify a background color).
Public classCompositeEffect
Combines two or more images.
Public classContrastEffect
Increases or decreases the contrast of an image.
Public classConvolveMatrixEffect
[NoComposition] Applies an arbitrary 2D filter kernel to an image. This can perform operations such as edge detect, emboss, sharpen, or blur.
Public classCropEffect
[NoComposition] Crops an image, outputting only a specified region.
Public classCrossFadeEffect
[Win10_14393] Cross-fades (interpolates) between two images.
Public classDirectionalBlurEffect
[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.
Public classDiscreteTransferEffect
[NoComposition] Alters the colors of an image using a quantized transfer function defined by an arbitrary lookup table.
Public classDisplacementMapEffect
[NoComposition] Displaces the pixels of an input image by the intensity values of a second image.
Public classDistantDiffuseEffect
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.
Public classDistantSpecularEffect
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.
Public classDpiCompensationEffect
[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.
Public classEdgeDetectionEffect
[NoComposition] Filters out the content of an image leaving lines at the edges of contrasting sections.
Public classEffectTransferTable3D
A three dimensional lookup table, for use with TableTransfer3DEffect.
Public classEmbossEffect
[NoComposition] Creates a grayscale version of an image that appears as though it has been stamped into paper.
Public classExposureEffect
Increases or decreases the exposure of an image.
Public classGammaTransferEffect
Alters the colors of an image by applying a per-channel gamma transfer function.
Public classGaussianBlurEffect
Creates a blur effect based on the Gaussian function over the entire input image.
Public classGrayscaleEffect
Converts an image to monochromatic gray.
Public classHdrToneMapEffect
[Win10_17763] [NoComposition] This effect adjusts the dynamic range of an image to better suit its content to the capability of the output display.
Public classHighlightsAndShadowsEffect
[NoComposition] Adjusts the highlights and shadows of an image.
Public classHueRotationEffect
Alters the color of an image by rotating its hue values.
Public classHueToRgbEffect
[NoComposition] Converts an HSV (hue, saturation, value) or HSL (hue, saturation, lightness) image to RGB color space.
Public classInvertEffect
Inverts the colors of an image.
Public classLinearTransferEffect
[NoComposition] Alters the colors of an image by applying a per-channel linear transfer function.
Public classLuminanceToAlphaEffect
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.
Public classMorphologyEffect
[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).
Public classOpacityEffect
[Win10_14393] Changes the opacity (alpha) of an image.
Public classOpacityMetadataEffect
[NoComposition] Marks an area of an input image as opaque, which can enable internal rendering optimizations.
Public classCode examplePixelShaderEffect
[NoComposition] Custom image effect which uses a pixel shader to apply arbitrary user-defined processing.
Public classPointDiffuseEffect
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.
Public classPointSpecularEffect
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.
Public classPosterizeEffect
[NoComposition] Reduces the number of unique colors in an image.
Public classPremultiplyEffect
[NoComposition] Converts an image from unpremultiplied to premultiplied alpha format.
Public classRgbToHueEffect
[NoComposition] Converts an RGB image to HSV (hue, saturation, value) or HSL (hue, saturation, lightness) color space.
Public classSaturationEffect
Alters the saturation of an image.
Public classScaleEffect
[NoComposition] Resizes an image.
Public classSepiaEffect
Converts an image to sepia tones.
Public classShadowEffect
[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.
Public classSharpenEffect
[NoComposition] Sharpens the image.
Public classSpotDiffuseEffect
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.
Public classSpotSpecularEffect
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.
Public classStraightenEffect
[NoComposition] Rotates and optionally scales an image.
Public classTableTransfer3DEffect
[NoComposition] Alters the colors of an image using a transfer function defined by an arbitrary three dimensional lookup table.
Public classTableTransferEffect
[NoComposition] Alters the colors of an image using a transfer function defined by arbitrary per-channel lookup tables.
Public classTemperatureAndTintEffect
Adjusts the temperature and/or tint of an image.
Public classTileEffect
[NoComposition] Repeats the specified region of an image.
Public classTintEffect
[Win10_14393] Tints an image using a specified color value.
Public classTransform2DEffect
Applies a 2D affine transform matrix to an image.
Public classTransform3DEffect
[NoComposition] Applies an arbitrary 4x4 transform matrix to an image.
Public classTurbulenceEffect
[NoComposition] Generates an image using the Perlin noise function.
Public classUnPremultiplyEffect
[NoComposition] Converts an image from premultiplied to unpremultiplied alpha format.
Public classVignetteEffect
[NoComposition] Fades out the edges of an image.
Public classWhiteLevelAdjustmentEffect
[Win10_17763] [NoComposition] This effect allows the white level of an image to be linearly scaled. This is especially helpful when you convert between display-referred luminance space and scene-referred luminance space, or vice versa.
Structures
  StructureDescription
Public structureColorManagementSimpleProfile
[Win10_15063] Simple description of a color space.
Public structureMatrix5x4
A 5x4 matrix, used for color transforms. See ColorMatrixEffect for usage examples.
Interfaces
  InterfaceDescription
Public interfaceICanvasEffect
Defines common functionality that is shared by all Win2D effects.
Enumerations
  EnumerationDescription
Public enumerationBlendEffectMode
The blend mode used for the effect.
Public enumerationColorManagementEffectQuality
Specifies quality vs. performance tradeoff for ColorManagementEffect.
Public enumerationColorManagementGamma
[Win10_15063] Describes the gamma of a ColorManagementSimpleProfile.
Public enumerationColorManagementProfileType
Describes the type of a ColorManagementProfile.
Public enumerationColorManagementRenderingIntent
Specifies the ICC (International Color Consortium) rendering intent for use by ColorManagementEffect.
Public enumerationEdgeDetectionEffectMode

Specifies what type of filter kernel to use for edge detection.

Public enumerationEffectBorderMode
Enumeration type that specifies how to process pixels that lie outside the input image.
Public enumerationEffectChannelSelect
Specifies which color channel of an image to use as source data for effect processing.
Public enumerationEffectHueColorSpace

Specifies the color space used by HueToRgbEffect and RgbToHueEffect.

Public enumerationEffectOptimization
Enumeration type that specifies speed vs. quality trade-off.
Public enumerationExtendedColorSpace
[Win10_15063] Defines an extended set of color spaces.
Public enumerationHdrToneMapEffectDisplayMode
The display mode used for the effect.
Public enumerationMorphologyEffectMode
Configures behavior of the morphology filter kernel.
Public enumerationSamplerCoordinateMapping
Describes what texture coordinates the shader will use when sampling an input texture.
Public enumerationTurbulenceEffectNoise
Specifies how turbulence noise should be generated.