Open AraHaan opened 6 years ago
from program resources
Loading image from resources should not be a problem since APNG accepts byte array in the constructor.
anim[a]te them in an Picturebox control
This is not a simple assignment. You will need to provider a timer which modifies the Picturebox's content at appropriate time. In WPF this can be done by binding an ObjectAnimationUsingKeyFrames
to an Image
control (related code available here), but I am not sure how to do the same for Winforms.
So, I got an C++ CLR Program that has tons of PNG iamges (some of them APNG's) And I want to have it where it defaults to the APNG and animite them in an Picturebox control (if possible) and also still be able to change the image and loop the APNG image as well after the last frame. Got any way to do it?
And yes I wrote it to auto adjust the viewer form based on now many images are present in an
*.rc
file that then compiles into an*.res
file, which then in return ends up in the binary's.rsrc
section so that way I dont have to manually edit the code and make it harder to update and fix an issue.Also
LoadResources.cpp
: