LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media.Effects assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
CreateGrayTexture Method
See Also 
Leadtools.Windows.Media.Effects Namespace > WindowLevelEffect Class : CreateGrayTexture Method



image
The input LEADTOOLS Leadtools.RasterImage.
image
The input LEADTOOLS Leadtools.RasterImage.
Helper method to create the grayscale brush required by this effect from a LEADTOOLS Leadtools.RasterImage. Supported in Silverlight

Syntax

Visual Basic (Declaration) 
Public Shared Function CreateGrayTexture( _
   ByVal image As RasterImage _
) As ImageBrush
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim value As ImageBrush
 
value = WindowLevelEffect.CreateGrayTexture(image)
C# 
public static ImageBrush CreateGrayTexture( 
   RasterImage image
)
C++/CLI 
public:
static ImageBrush^ CreateGrayTexture( 
   RasterImage^ image
) 

Parameters

image
The input LEADTOOLS Leadtools.RasterImage.

Return Value

An System.Windows.Media.ImageBrush object containing the grayscale texture.

Example

For C#/VB examples, refer to WindowLevelEffect.

Remarks

You can use this method to create the grayscale texture required by this effect.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also