Click or drag to resize
Ab4d.SharpEngine logo

SobelEdgeDetectionPostProcess Properties

The SobelEdgeDetectionPostProcess type exposes the following members.

Properties
 NameDescription
Public propertyAddEdgeToCurrentColor Gets or sets a Boolean value that specifies if the edge color defined by this post-process is multiplied with the existing pixel color - this way the edges are added to the existing rendering. When false then only the edges are preserved and the original rendering is not visible anymore. Default value is true.
Public propertyColorFactors Gets or sets a Vector4 value that specifies the factors for individual color contributions to the edge detection. For example, to detect edges only on red colors, set this to (1,0,0,0). To detect edges on changes of the alpha channel (for example when background is transparent), set the ColorFactors to (0, 0, 0, 1). Default value is (0.25f, 0.25f, 0.25f, 0.25f) where all color values are equal.
Public propertyEdgeColor Gets or sets a Color4 that specifies the edge color. Default value is Black.
Public propertyEdgeThreshold Gets or sets a float value that specifies the edge threshold that is needed to decide how big the color difference need to be to render an edge. Smaller values produce more edges, bigger values produce less edges. Default value is 0.05f.
Public propertyNonEdgeColor Gets or sets a Color4 that specifies the color that is used when no edge is detected and when AddEdgeToCurrentColor is false. Default value is White.
Top
See Also