33 #ifndef OPENSHOT_QT_TEXT_READER_H
34 #define OPENSHOT_QT_TEXT_READER_H
97 std::string text_color;
98 std::string background_color;
99 std::string text_background_color;
100 std::shared_ptr<QImage> image;
119 QtTextReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string text, QFont font, std::string text_color, std::string background_color);
136 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame);
142 std::string
Name() {
return "QtTextReader"; };
145 std::string
Json()
const override;
146 void SetJson(
const std::string value);
Header file for CacheMemory class.
Header file for TextReader class.
Header file for all Exception classes.
Header file for ReaderBase class.
This class is a memory-based cache manager for Frame objects.
This class uses Qt libraries, to create frames with "Text", and return openshot::Frame objects.
openshot::CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
void SetJson(const std::string value)
Load JSON string into this object.
void Close()
Close Reader.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame)
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
bool IsOpen()
Determine if reader is open or closed.
std::string Name()
Return the type name of the class.
void Open()
Open Reader - which is called by the constructor automatically.
void SetTextBackgroundColor(std::string color)
std::string Json() const override
Get and Set JSON methods.
QtTextReader()
Default constructor (blank text)
Json::Value JsonValue() const override
Generate Json::Value for this object.
This abstract class is the base class, used by all readers in libopenshot.
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.