31 #ifndef OPENSHOT_TEXT_READER_H 32 #define OPENSHOT_TEXT_READER_H 35 #ifdef USE_IMAGEMAGICK 95 std::string text_color;
96 std::string background_color;
97 std::string text_background_color;
98 std::shared_ptr<Magick::Image> image;
119 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);
136 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame);
142 std::string
Name() {
return "TextReader"; };
146 void SetJson(std::string value);
156 #endif //USE_IMAGEMAGICK 157 #endif //OPENSHOT_TEXT_READER_H std::string Json()
Get and Set JSON methods.
Header file for ReaderBase class.
void Close()
Close Reader.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
Json::Value JsonValue()
Generate Json::JsonValue for this object.
This abstract class is the base class, used by all readers in libopenshot.
bool IsOpen()
Determine if reader is open or closed.
void SetTextBackgroundColor(std::string color)
Header file for CacheMemory class.
void SetJsonValue(Json::Value root)
Load Json::JsonValue into this object.
Header file for all Exception classes.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame)
TextReader()
Default constructor (blank text)
Header file for TextReader class.
void SetJson(std::string value)
Load JSON string into this object.
openshot::CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
This namespace is the default namespace for all code in the openshot library.
std::string Name()
Return the type name of the class.
This class uses the ImageMagick++ libraries, to create frames with "Text", and return openshot::Frame...
This class is a memory-based cache manager for Frame objects.
void Open()
Open Reader - which is called by the constructor automatically.
GravityType
This enumeration determines how clips are aligned to their parent container.