Stack:
- C++
- GDI+
- CMake
Windows:
- cd .\build\
- cmake --build .
- .\main.exe
Использование:
- F1 - Начать и поставить на паузу воспроиведение
void LoadRes(HWND hWnd) {
Bitmap* bitmap = new Bitmap(L"..\\resoureses\\Sample.gif"); // Путь к вашему gif файлу
gif = new GIF(bitmap, (HDC)GetDC(hWnd), hWnd);
gif->position.x = 150;
gif->position.y = 150;
gif->position.width = bitmap->GetWidth();
gif->position.height = bitmap->GetHeight();
delete bitmap;
}
SetTimer(hWnd,
TIMER1,
40, // FPS
NULL);