Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Re: WinFX CODECs Decoder

 
 
Old 02-28-2006   #1 (permalink)
Pablo Fernicola [MS]


 
 

Re: WinFX CODECs Decoder

Trying to move this to the Avalon newsgroup, so that other folks that are
working with WPF's Imaging Component get to see this thread as well.

-Pablo

"terry" <tjh42@mybluelight.com> wrote in message
news:1141059834.167339.312490@z34g2000cwc.googlegroups.com...
> Daniel:
>
> Thanks for the response. Digitally signing my decoder solves this
> problem. Now I can call CreateDecoderFromFilename() and get a
> reference to my custom decoder. I can also correctly get pixel data
> calling the CopyPixels methd.
>
> But I'm having a second problem. When I try use my decoder to load a
> custom image in a XAML file, my decoder does not get loaded. (The
> MyCustomImage.cmp is the image file that my custom decoder can load
> when I call CreateDecoderFromFileName()).
>
>
> <StackPanel xmlns="http://schemas.microsoft.com/winfx/avalon/2005">
> <Button Width="200">
> <Image Source="e:\images\MyCustomImage.cmp"/>
> </Button>
> </StackPanel>
>
> I get the following error:
> Error at element 'Image' in markup file 'Page1.xaml' : The string
> 'e:\images\MyCustomImage.cmp' could not be set on the 'Source' property
> which is of type 'ImageSource'. Please see the sdk documentation for
> the Source property and the ImageSource class for an explanation of
> allowable values.
>
> The snippet above works correctly if I replace the MyCustomImage.cmp
> with valid PNG image, or any other image format that WinFX supports
> natively.
>
> Were you able to use your custom decoder to load an image in a XAML
> file?
> Any ideas?
>
> Thanks for you help.
>
> --Terry
>
>
>
> schlzber@t-online.de wrote:
>> Ike Starnes wrote:
>> > A lot...

>>
>> > Terry Hopkins

>>
>> Hi Trevor,
>>
>> I had the same problem when I tried to get my decoder loaded this way.
>> I Asked Robert A. Wlodarczyk from MS about it and he told me what you
>> have to do. The dll with your COM Server has to be digitally signed and
>> also has to have full trust locally on your computer. You can use the
>> test certificate that you get when you create a clickonce project in
>> visual studio 2005.
>> Hope this helps for you too,
>>
>> Daniel

>




My System SpecsSystem Spec
Old 02-28-2006   #2 (permalink)
Pablo Fernicola [MS]


 
 

Re: WinFX CODECs Decoder

And for folks interested on WIC (WPF's Imaging Components), I highly
recommend Robert's blog - http://blogs.msdn.com/rwlodarc/default.aspx

Btw, would love to get feedback as to whether you are finding the more
direct dialog through blogs and newsgroup useful (there is less overhead and
we are able to turn material around and go into greater depth faster than in
any previous MS products we released), along with the regular CTP releases.
Hopefully you are please, but let us know what we can do better.

Thanks,

-Pablo

"Pablo Fernicola [MS]" <pablo@fernicola.org> wrote in message
news:%23YG988CPGHA.3732@TK2MSFTNGP10.phx.gbl...
> Trying to move this to the Avalon newsgroup, so that other folks that are
> working with WPF's Imaging Component get to see this thread as well.
>
> -Pablo
>
> "terry" <tjh42@mybluelight.com> wrote in message
> news:1141059834.167339.312490@z34g2000cwc.googlegroups.com...
>> Daniel:
>>
>> Thanks for the response. Digitally signing my decoder solves this
>> problem. Now I can call CreateDecoderFromFilename() and get a
>> reference to my custom decoder. I can also correctly get pixel data
>> calling the CopyPixels methd.
>>
>> But I'm having a second problem. When I try use my decoder to load a
>> custom image in a XAML file, my decoder does not get loaded. (The
>> MyCustomImage.cmp is the image file that my custom decoder can load
>> when I call CreateDecoderFromFileName()).
>>
>>
>> <StackPanel xmlns="http://schemas.microsoft.com/winfx/avalon/2005">
>> <Button Width="200">
>> <Image Source="e:\images\MyCustomImage.cmp"/>
>> </Button>
>> </StackPanel>
>>
>> I get the following error:
>> Error at element 'Image' in markup file 'Page1.xaml' : The string
>> 'e:\images\MyCustomImage.cmp' could not be set on the 'Source' property
>> which is of type 'ImageSource'. Please see the sdk documentation for
>> the Source property and the ImageSource class for an explanation of
>> allowable values.
>>
>> The snippet above works correctly if I replace the MyCustomImage.cmp
>> with valid PNG image, or any other image format that WinFX supports
>> natively.
>>
>> Were you able to use your custom decoder to load an image in a XAML
>> file?
>> Any ideas?
>>
>> Thanks for you help.
>>
>> --Terry
>>
>>
>>
>> schlzber@t-online.de wrote:
>>> Ike Starnes wrote:
>>> > A lot...
>>>
>>> > Terry Hopkins
>>>
>>> Hi Trevor,
>>>
>>> I had the same problem when I tried to get my decoder loaded this way.
>>> I Asked Robert A. Wlodarczyk from MS about it and he told me what you
>>> have to do. The dll with your COM Server has to be digitally signed and
>>> also has to have full trust locally on your computer. You can use the
>>> test certificate that you get when you create a clickonce project in
>>> visual studio 2005.
>>> Hope this helps for you too,
>>>
>>> Daniel

>>

>
>



My System SpecsSystem Spec
Old 03-08-2006   #3 (permalink)
schlzber@t-online.de


 
 

Re: WinFX CODECs Decoder

I had this problem too ;-)
I think the solution is to implement a class that implements
IWICBitmapDecoderInfo that repeats all the information that you already
have to put into the registry. You have to provide this interface in
the IWICBitmapDecoder::GetDecoderInfo function.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
DVD decoder with 5.1 Vista General
DVD Decoder Vista General
dvd decoder Vista music pictures video
DVD Decoder Vista General
DVD decoder Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46