13#ifndef OPENSHOT_TEXT_READER_H
14#define OPENSHOT_TEXT_READER_H
72 std::string text_color;
73 std::string background_color;
74 std::string text_background_color;
75 std::shared_ptr<Magick::Image> image;
96 TextReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string text, std::string font,
double size, std::string text_color, std::string background_color);
103 void Close()
override;
113 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame)
override;
116 bool IsOpen()
override {
return is_open; };
119 std::string
Name()
override {
return "TextReader"; };
122 std::string
Json()
const override;
123 void SetJson(
const std::string value)
override;
128 void Open()
override;
Header file for TextReader class.
Header file for MagickUtilities (IM6/IM7 compatibility overlay).
Header file for ReaderBase class.
All cache managers in libopenshot are based on this CacheBase class.
This class represents a single frame of video (i.e. image & audio data).
ReaderBase()
Constructor for the base reader, where many things are initialized.
void Close() override
Close Reader.
std::string Json() const override
Generate JSON string of this object.
std::string Name() override
Return the type name of the class.
TextReader()
Default constructor (blank text).
void Open() override
Open Reader - which is called by the constructor automatically.
void SetTextBackgroundColor(std::string color)
void SetJson(const std::string value) override
Load JSON string into this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
openshot::CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object).
bool IsOpen() override
Determine if reader is open or closed.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame) override
This namespace is the default namespace for all code in the openshot library.
GravityType
This enumeration determines how clips are aligned to their parent container.