Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D.Effects Namespace / DistantSpecular Class / KernelUnitLength Property

In This Topic
    KernelUnitLength Property (DistantSpecular)
    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 GrapeCity.Documents.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