Leadtools.Converters assembly

ConvertToImageOptions Enumeration

Show in webframe







Options for converting a LEADTOOLS Leadtools.RasterImage object into a WinRT Windows.UI.Xaml.Media.ImageSource.
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum ConvertToImageOptions 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As ConvertToImageOptions
[FlagsAttribute()]
public enum ConvertToImageOptions : System.IComparableSystem.IConvertibleSystem.IFormattable  
enum LTConvertToImageOptions

            
Leadtools.Converters.ConvertToImageOptions = function() { };
Leadtools.Converters.ConvertToImageOptions.prototype = {
None = 0, KeepAlphaValues = 1, KeepViewPerspective = 10, IgnoreLowHighBitsOnGrayImages = 100, UseSetSource = 1000, AutoDetectAlpha = 10000, LinkImage = 100000, };
[FlagsAttribute()]
public enum class ConvertToImageOptions : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0NoneDefault
1KeepAlphaValues

If the source Leadtools.RasterImage is 32 or 64-bits/pixel, then use the alpha values from this alpha when the result of the conversion is also a 32 or 64-bits/pixel Windows.UI.Xaml.Media.ImageSource.

If this flag is not specified, the resulting Windows.UI.Xaml.Media.ImageSource will always have an alpha value of all 1's (255 for 32-bit images or 65535 for 64-bit images) regardless of the alpha values in the source Leadtools.RasterImage. This can be useful when converting some 32-bit images that may have 0 for the alpha (such as BMP files) which translates into an Windows.UI.Xaml.Media.ImageSource that is completely transparent.

If this flag is specified, then the source image alpha values will be used as is.

10KeepViewPerspective

Keep the original Leadtools.RasterImage view perspective. Leadtools.RasterImage objects support having an image data orientation other than the normal top-left orientation by using the RasterImage.ViewPerspective property.

If the source Leadtools.RasterImage has a view-perspective other than RasterViewPerspective.TopLeft and this flag is specified, then the resulting Windows.UI.Xaml.Media.ImageSource can be flipped, reversed or rotated. For example, if the source view-perspective is RasterViewPerspective.BottomLeft and this flag is specified in the conversion options, then the resulting Windows.UI.Xaml.Media.ImageSource will be flipped.

If this flag is not specified, then the conversion can flip, reverse or rotate the image data as needed to provide the correct (top-left) orientation for the Windows.UI.Xaml.Media.ImageSource.

100IgnoreLowHighBitsOnGrayImages

Do not use the grayscale bit window values when converting 12 or 16-bit grayscale Leadtools.RasterImage objects. The Leadtools.RasterImage object contains the RasterImage.LowBit and RasterImage.HighBit values that can be set to provide a Window into the image data. This is mostly used by medical applications during a window-leveling operation.

If this flag is specified, the RasterImage.LowBit and RasterImage.HighBit values are ignored and all of the image data is used when converting the Leadtools.RasterImage into a Windows.UI.Xaml.Media.ImageSource.

If this flag is not specified, then only the image data between the RasterImage.LowBit and the RasterImage.HighBit is used.

1000UseSetSourceNot Supported in WinRT.
10000AutoDetectAlphaNot supported in WinRT.
100000LinkImageUses the data from the source's native image object without making a copy.

In WinRT, this links the RasterImage to a WriteableBitmap.

Remarks

This enumeration is used to specify the options for converting LEADTOOLS Leadtools.RasterImage objects to to WinRT Windows.UI.Xaml.Media.ImageSource components through the RasterImageConverter.ConvertToImageSource method.

For more information refer to RasterImage and WinRT.

Example
For an example, refer to RasterImage and WinRT.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Converters.ConvertToImageOptions

Requirements

Target Platforms

See Also

Reference

Leadtools.Converters Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.