←Select platform

ConvertFromSourceOptions Enumeration

Summary

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

Syntax
C#
VB
C++
[FlagsAttribute()] 
public enum ConvertFromSourceOptions 
  
<FlagsAttribute()> 
Public Enum ConvertFromSourceOptions  
   Inherits System.Enum 
   Implements System.IComparable, System.IConvertible, System.IFormattable  
[FlagsAttribute()] 
public enum class ConvertFromSourceOptions : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable   

Members
ValueMemberDescription
0x00000000NoneDefault
0x00000001UseWritableBitmap

Use WriteableBitmap for image data storage.

Note: This flag is no longer supported.

0x00000002AutoDetectAlpha

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 no longer supported.

0x00000004FastConvertTo1Bit

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 no longer supported.

Remarks

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

For more information refer to RasterImage and WPF.

Example

For an example, refer to RasterImageConverter.

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.