4 #include <Commdlg.h> // OPENFILENAME
5 #include "atlconv.h" // String cast. ex) LPWSTR <-> LPSTR
7 #include <CommCtrl.h> // slider handle
11 #define UI_INTERVAL 20
14 #define WND_WIDTH 1000
15 #define WND_HEIGHT 800
16 #define BMP_MAX_LEN 500
19 #define TEXT_HEIGHT 20
20 #define SLIDER_HEIGHT 25
21 #define RDOBTN_WIDTH 60
22 #define RDOBTN_HEIGHT 20
23 #define RESIZE_LENGTH 10
25 void setAnimation(char* path, size_t w, size_t h);
26 void initAnimation(size_t w, size_t h);
27 uint32_t* renderRLottieAnimation(uint32_t frameNum);
28 size_t getTotalFrame();
30 void setAnimationColor(int r, int g, int b);
32 typedef struct RlottieBitmap
34 Gdiplus::Bitmap* image = NULL;
37 unsigned int width = 0;
38 unsigned int height = 0;