]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsCacheItem.C
(Herbert): discover the "Bounding Box" of non-(e)ps graphics files, and
[features.git] / src / graphics / GraphicsCacheItem.C
index baa5485ce2db12cc4ccd674fa5730432ba2c9bc1..54fbfdf4a3ce26239f70eb5ff3a2b5226b9bb0a7 100644 (file)
@@ -392,6 +392,24 @@ void GCacheItem::imageLoaded(bool success)
 }
 
 
+unsigned int GCacheItem::raw_width() const
+{
+       if (!image_.get())
+               return 0;
+
+       return image_->getWidth();
+}
+
+
+unsigned int GCacheItem::raw_height() const
+{
+       if (!image_.get())
+               return 0;
+
+       return image_->getHeight();
+}
+
+
 namespace {
 
 string const findTargetFormat(string const & from)