15 lines
552 B
C
15 lines
552 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
/// Generates simple 1-bit BMP placeholder covers with title/author text
|
||
|
|
/// for books that have no embedded cover image.
|
||
|
|
class PlaceholderCoverGenerator {
|
||
|
|
public:
|
||
|
|
/// Generate a placeholder cover BMP with title and author text.
|
||
|
|
/// The BMP is written to outputPath as a 1-bit black-and-white image.
|
||
|
|
/// Returns true if the file was written successfully.
|
||
|
|
static bool generate(const std::string& outputPath, const std::string& title, const std::string& author, int width,
|
||
|
|
int height);
|
||
|
|
};
|