jascam / AnotherMigrateTest

0 stars 0 forks source link

XAML sometimes contains empty BitmapImage elements #39

Open jascam opened 7 years ago

jascam commented 7 years ago

After conversion, the XAML sometimes contains and at other places , i.e. without data or URL. In WpfImageRendering.GetBitmap, context.ImageVisitor is sometimes non-null and somtimes null. Is there a technical necessity for this behaviour or is it a bug?   Attached is an svg where this can be reproduced e.g. in SVG-WPF Converter

Attachments

aktiviert.svg

This work item was migrated from CodePlex

CodePlex work item ID: '581' Vote count: '2'

jascam commented 7 years ago

[SelormeyPaul@6/14/2011] Thanks for the information and test file. Will look into it.

jascam commented 7 years ago

[SelormeyPaul@6/14/2011] I have found the source of the problem. Change the line 456 of WpfRendering...

maskContext.Initialize(null, context.FontFamilyVisitor, null);

to

maskContext.Initialize(context.LinkVisitor, context.FontFamilyVisitor, context.ImageVisitor);

Unfortunately, this will not solve the problem because the masking support is currently not complete.

jascam commented 7 years ago

[KlausGuetter@6/14/2011] Man, you're fast. Thank you Klaus

jascam commented 7 years ago

[UnknownUser@6/15/2011]

jascam commented 7 years ago

[KlausGuetter@7/25/2011] Do you have plans to add masking support in the near future?

jascam commented 7 years ago

[SelormeyPaul@7/25/2011] There is some masking support, you can run the test suite to see the types supported. Currently, this is one of the types not supported due to limitations of the WPF masking.

We will have to find a way out of this for a complete support.

jascam commented 7 years ago

[UnknownUser@2/14/2013]