←Select platform

CreateGrayTexture Method

Summary

Helper method to create the grayscale brush required by this effect from a LEADTOOLS Leadtools.RasterImage.

Syntax
C#
VB
C++
public static ImageBrush CreateGrayTexture( 
   RasterImage image 
) 
  
Public Shared Function CreateGrayTexture( _ 
   ByVal image As RasterImage _ 
) As ImageBrush 
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.

Remarks

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

Example

For C#/VB examples, refer to WindowLevelEffect.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Media.Effects Assembly