summaryrefslogtreecommitdiff
path: root/src/subtitle_image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_image.cc')
-rw-r--r--src/subtitle_image.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/subtitle_image.cc b/src/subtitle_image.cc
index 49c00f77..e1f123bc 100644
--- a/src/subtitle_image.cc
+++ b/src/subtitle_image.cc
@@ -75,6 +75,20 @@ SubtitleImage::SubtitleImage (
}
+void
+SubtitleImage::read_png_file (boost::filesystem::path file)
+{
+ _file = file;
+ _png_image = Data (file);
+}
+
+void
+SubtitleImage::write_png_file (boost::filesystem::path file) const
+{
+ _file = file;
+ png_image().write (file);
+}
+
bool
dcp::operator== (SubtitleImage const & a, SubtitleImage const & b)
{