Share via


CustomImageSourceAdapter Class

An adapter that allows the creation of a user implemented custom image source.

Namespace: Lumia.Imaging.Custom
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Syntax

public sealed class CustomImageSourceAdapter : IClosable, 
    IImageProvider, IImageSize, __ICustomImageSourceAdapterPublicNonVirtuals
'Declaration
Public NotInheritable Class CustomImageSourceAdapter
    Implements IClosable, IImageProvider, IImageSize, __ICustomImageSourceAdapterPublicNonVirtuals
public ref class CustomImageSourceAdapter sealed : IClosable, 
    IImageProvider, IImageSize, __ICustomImageSourceAdapterPublicNonVirtuals
Lumia.Imaging.Custom.CustomImageSourceAdapter = function();

Type.createClass(
    'Lumia.Imaging.Custom.CustomImageSourceAdapter',
    null,
    Windows.Foundation.IClosable,
    Lumia.Imaging.IImageProvider,
    Lumia.Imaging.IImageSize,
    Lumia.Imaging.Custom.__ICustomImageSourceAdapterPublicNonVirtuals);

Remarks

The intended usage pattern is that the user implements an "outer class" representing the image source. This outer class should:

  • Privately own a CustomImageSourceAdapter.
  • Implement IImageProvider and propagate all method/property calls to the CustomImageSourceAdapter.
  • Implement and handle ICustomImageSource.

Note that in C#/.NET, the CustomImageSourceBase base class is recommended instead, as it implements this pattern. That leaves only a couple of overloads for the user class to provide. Members of this class are not guaranteed to be thread safe.

Inheritance Hierarchy

System.Object
  Lumia.Imaging.Custom.CustomImageSourceAdapter

Version Information

Lumia Imaging SDK

Supported in: 2.0

See Also

CustomImageSourceAdapter.CustomImageSourceAdapter Members

Lumia.Imaging.Custom Namespace