Custom BitmapDecoder/Encoder RRS feed

  • Question

  • Is there any way to support custom BitmapEncoder and BitmapDecoder?

    Wednesday, August 15, 2012 6:56 PM

All replies

  • Is the goal just to use a custom codec?  The following may help:

    How to Write a WIC-Enabled Codec

    Metadata Extensibility Overview

    You can get a list of installed codecs by calling BitmapEncoder.GetEncoderInformationEnumerator and BitmapDecoder.GetDecoderInformationEnumerator.

    • Proposed as answer by Jesse Jiang Thursday, August 16, 2012 8:16 AM
    Wednesday, August 15, 2012 8:53 PM
  • is WIC valid for metro, because I already have WIC codecs and it works fine in WPF but when try to use them in Metro APP using BitmapDecoder always fails with error component not found, also BitmapDecoder.GetDecoderInformationEnumerator only returns the 7 built in codecs.

    Thursday, August 16, 2012 8:52 AM
  • Apologies, I missed some info - if you're attempting to use a custom encoder/decoder, I believe you need to include it in your app package and call CoCreateInstanceFromApp on it manually - you can't instantiate or register custom COM objects at a system level as you could with a desktop app.
    Thursday, August 16, 2012 5:43 PM