Comments (7)
@cyrilcathala Thanks for the reduced repo. This is super helpful.
We've been seeing some issues with the image loader helper. Which is what we can believe is the root cause. But we'll get someone to investigate to verify.
We're working on update for more efficient ways for uploading image data. So stay tuned for that.
from windowscompositionsamples.
Great news, and thanks for the quick reply!
Do you have any timeline to share for the update?
I'd like to publish a new app, and that's quite the last piece of the puzzle to solve...
from windowscompositionsamples.
@cyrilcathala Unfortunately, we can't share out direct timelines (which doesn't help you), but we are actively working on it.
However there are some possible workarounds to unblock you in the very near term, note things can change though.
A DIY more flexible, but more complex version:
- Leverage
Win2D
+Windows.UI.Composition
interop- Load the image data using CanvasBtimap from
Win2D
- Use Win2D to draw the image data on a
CompositionDrawingSurface
using the Win2D CompositionExample - Use that
CompositionDrawingSurface
to create aSurfaceBrush
and use that as input to yourEffect
- Load the image data using CanvasBtimap from
This gives you super flexibility in terms of you can use Win2D to draw effects directly to the image data(these aren't animated by the Compositor at runtime), and then use that as input to an Effect that you want to animate with the Compositor at runtime.
Like I said more flexible, but a little more complex.
@robmikh has been experimenting in this area and you can have a look at what he's being doing here:
(https://github.com/robmikh/compositionimageloader).
Hope that helps for the relatively short term.
By the way, what build(s) are you looking to target and are you on the Windows Insider program?
from windowscompositionsamples.
Ok great, now I have what I need, thanks for the detailed answer, really appreciate.
I'll definitively have a look at @robmikh project.
Can't wait to see what's next with those awesome APIs :)
from windowscompositionsamples.
Just to let you know, I am now using the CompositionImageLoader, and it is a winner! No more memory leaks, I'm thrilled! :)
Thanks again @pgills, I close the issue.
from windowscompositionsamples.
@cyrilcathala Thanks! I'm going to keep this issue open for a little bit longer incase other folks run into this so they have a temporary work around, until publish our update.
from windowscompositionsamples.
Closing. We have an updated ImageLoader in the Samples Common project file. Recommending moving to that implementation.
from windowscompositionsamples.
Related Issues (20)
- I can't get my Projection Matrix to have a proper perspective for a Rotation animation HOT 5
- [Question] Is it possible to make Composition Animation running along with a path?
- GraphicsCaptureItem.CreateFromVisual has blur
- A little doubt about about code in ThumbnailLighting.xaml.cs HOT 3
- Build error in VS2019 and VS2019 preview HOT 3
- Does Windows.UI.Composition support Direct3D 12?
- how to apply effects to any shape of area of an xaml element or visual element? HOT 2
- AnimationController.Progress always return zero HOT 2
- Add sample for Snap points / Inertia modifiers
- Use Windows Community Toolkit library instead of custom code HOT 1
- Navigation Flow example crashing HOT 1
- Grammatical error HOT 1
- WindowsComposition Animation End Event missing. HOT 1
- Is Windows Composition API dead? HOT 4
- Channel 9 links on Resources page re-direct to the same Microsoft Docs page HOT 1
- Taking a screenshot of windows with AllowsTransparency="True" HOT 1
- Can we have C++ samples?
- Official DirectComposition Interop
- Looks like a bug in ImageLoader.cs
- Docs on IAnimationObject and CompositionAnimation.SetExpressionReferenceParameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowscompositionsamples.