ASAPCabinetFE
 
Loading...
Searching...
No Matches
vpinmdb_image.h
Go to the documentation of this file.
1
8#ifndef VPINMDB_IMAGE_H
9#define VPINMDB_IMAGE_H
10
11#include "log/logging.h"
12#include <filesystem>
13#include <string>
14
15namespace fs = std::filesystem;
16
17namespace vpinmdb {
18
26bool resizeImage(const fs::path& srcPath, int width, int height);
27
34bool rotateImage(const fs::path& srcPath, bool shouldRotate);
35
36} // namespace vpinmdb
37
38#endif // VPINMDB_IMAGE_H
bool rotateImage(const fs::path &srcPath, bool shouldRotate)
Rotates an image 90 degrees clockwise if shouldRotate is true.
Definition vpinmdb_image.cpp:76
bool resizeImage(const fs::path &srcPath, int width, int height)
Resizes an image to the specified dimensions if resizeToWindows is true.
Definition vpinmdb_image.cpp:15