Leadtools.Windows.Media Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RasterImageMediaConverterFromFlags Enumeration
See Also  
Leadtools.Windows.Media Namespace : RasterImageMediaConverterFromFlags Enumeration



Options for converting a LEADTOOLS RasterImage object to Windows Presentation Foundation (WPF)ImageSource.

Syntax

Visual Basic (Declaration) 
<FlagsAttribute()>
Public Enum RasterImageMediaConverterFromFlags 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As RasterImageMediaConverterFromFlags
C# 
[FlagsAttribute()]
public enum RasterImageMediaConverterFromFlags : Enum 
C++/CLI 
[FlagsAttribute()]
public enum class RasterImageMediaConverterFromFlags : public Enum 

Members

MemberDescription
None No options
KeepAlphaValues Use the source image alpha values when converting from and to a pixel format that supports an alpha channel. If this flag is not set, the alpha values in the source image will be ignored (if present) and an alpha value of all 1's (opaque) will be used instead. If the destination pixel format does not support alpha, this value is ignored.
KeepViewPerspective Do not rotate or flip the destination image if the source image has a view perspective other than RasterViewPerspective.TopLeft/>. For example, if the source image has a view perspective of RasterViewPerspective.BottomLeft, the result destination image will be flipped. If this flag is not present, the conversion method will rotate/flip the scanlines as needed.
IgnoreLowHighBitsOnGrayImages Ignore the LowBit and HighBit values if the source image is a grayscale image with bits per pixel value of 12 or 16. If this flag is not present, the low/high bit values will be used when converting the scanlines of the destination image.

Example

For an example, refer to RasterImageMediaConverter

Remarks

For more information, refer to the RasterImageMediaConverter.ConvertFrom method.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Media.RasterImageMediaConverterFromFlags

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also