←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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Media.Effects Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.