LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media assembly)
LEAD Technologies, Inc

ConvertFromSourceOptions Enumeration






Options for converting a Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.ImageSource to a LEADTOOLS Leadtools.RasterImage object. .NET support Silverlight support
Syntax
[FlagsAttribute()]
public enum ConvertFromSourceOptions : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum ConvertFromSourceOptions 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As ConvertFromSourceOptions
[FlagsAttribute()]
public enum ConvertFromSourceOptions : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Windows.Media.ConvertFromSourceOptions = function() { };
Leadtools.Windows.Media.ConvertFromSourceOptions.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class ConvertFromSourceOptions : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
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.

FastConvertTo1Bit

Fast conversion to 1-bit black on white. Use this flag to convert any System.Windows.Media.ImageSource to a 1-bit per pixel Leadtools.RasterImage object with black on white palette. Useful for quickly converting System.Windows.Media.ImageSource to Leadtools.RasterImage; suitable for barcode or OCR recognition.

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.

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.

Example
For an example, refer to RasterImageConverter.
Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Windows.Media Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.