LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ConvertFromSourceOptions Enumeration
See Also  
Leadtools.Windows.Media Namespace : ConvertFromSourceOptions Enumeration



Options for converting a Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.ImageSource to a LEADTOOLS Leadtools.RasterImage object. Supported in Silverlight, Windows Phone 7

Syntax

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

Members

MemberDescription
AutoDetectAlpha

Indicates LEADTOOLS should automatically detect if the image data contains meaningful alpha channel values, and if so, set the RasterImage.PremultiplyAlpha property accordingly.

Note:This flag is supported only in LEADTOOLS Silverlight versions.

NoneDefault
UseWritableBitmap

Use WriteableBitmap for image data storage.

Note:This flag is supported only in LEADTOOLS Silverlight versions.

Example

For an example, refer to RasterImageConverter.

Remarks

This enumeration is used as the options for converting Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.ImageSource objects to LEADTOOLS Leadtools.RasterImage through the RasterImageConverter.ConvertFromSource method.

For more information refer to RasterImage and WPF/Silverlight.

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also