BlendImages is called after calculating _position and _scale on manipulation event

What am I doing wrong?

Thanks
Damiano

2014-04-12, 08:58

yan_

Re: Blend filter is slower than demo example

Hi.
If FuseImageResult is a Image control, you must set CacheMode in your xaml :
[code]<Image CacheMode="BitmapCache" Stretch="UniformToFill"></Image>[/code]

Personally, i prefer use a canvas with a ImageBrush as background. In my test , it always more efficient.

2014-04-12, 09:19

DamMen

Re: Blend filter is slower than demo example

[QUOTE=yan_;937577]Hi.
If FuseImageResult is a Image control, you must set CacheMode in your xaml :
[code]<Image CacheMode="BitmapCache" Stretch="UniformToFill"></Image>[/code]

Personally, i prefer use a canvas with a ImageBrush as background. In my test , it always more efficient.[/QUOTE]

Hi yan_, nice to hear from you again.

I made some test, the problem is that I am working with a 7/8 MP images and the blend filter is not faster enough for a real time manipulation.
I decided to try to use low resolution images for the manipulation and then blend the high res images only when the user confirm.

Do you know a good method to reduce the image resolution?

I found this #Method 2
[URL="http://developer.nokia.com/community/wiki/Memory-efficient_Navigation_in_Very_High_Resolution_Images_on_Windows_Phone#Sample_code"]http://developer.nokia.com/community/wiki/Memory-efficient_Navigation_in_Very_High_Resolution_Images_on_Windows_Phone#Sample_code[/URL]

2014-04-12, 12:52

DamMen

Re: Blend filter is slower than demo example

Hi yan_,

I changed the Image control with ImageBrush as you suggested and the performance increased!

Thank you
Damiano

2014-04-12, 14:04

yan_

Re: Blend filter is slower than demo example

Depend what you want do exactly.
If you want use only the default blend method, it's better to do the preview directly with XAML. You can look this sample : [url]http://1drv.ms/1kSHF0D[/url]
If you search on the forum, you should find the discution.

But if you want use other or do more complex filter, you should use Imaging SDK. To improve speed, you could reduce output rendering, llike the sample you have found.

2014-04-12, 14:39

DamMen

Re: Blend filter is slower than demo example

Thank you, great sample.

I add a mask generated with the Interactive Foreground Segmenter to the blend filter so I have to use Imaging SDK.