ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.Direct2D.Effects Namespace / SpotDiffuse Class / KernelUnitLength Property

In This Topic
    KernelUnitLength Property (SpotDiffuse)
    In This Topic
    The size of an element in the Sobel kernel used to generate the surface normal in the X and Y direction. This property maps to the dx and dy values in the Sobel gradient. This property is a C1.Util.DX.Vector2 (Kernel Unit Length X, Kernel Unit Length Y) and is defined in (device-independent pixels (DIPs)/Kernel Unit). The effect uses bilinear interpolation to scale the bitmap to match size of kernel elements.
    Syntax
    'Declaration
     
    Public Property KernelUnitLength As Vector2
    public Vector2 KernelUnitLength {get; set;}
    See Also