8 Replies
I have it rotating but I need to only affect the top part of the image.png file
how do I rotate only the top part of this image?
You need to split the image into parts via a photo editing program. Assuming you want to "open the lid" of the trashcan
I believe there is a way to animate the image file within visual studio
the top pixels of it
this rotates the whole image
At least I am not aware of such effects; but I could be wrong. Wait and see if someone checks in and do some more research in the meantime
okay
You could make a shader I guess, that'd be the only way that I can think of which doesn't require splitting image into parts
https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.effects.shadereffect?view=windowsdesktop-9.0
what is a shader?
Code that runs on the GPU
Shaders can be tricky though, especially to debug. You'd need a program like RenderDoc to debug them
I'd choose the first though (splitting image into parts). Significantly easier