diff layer/ImageLayer.h @ 304:4b7e8da8f069

* More work on image layer display &c
author Chris Cannam
date Fri, 05 Oct 2007 13:27:21 +0000
parents 46faec7aae12
children 013a37723c0a
line wrap: on
line diff
--- a/layer/ImageLayer.h	Thu Oct 04 16:34:11 2007 +0000
+++ b/layer/ImageLayer.h	Fri Oct 05 13:27:21 2007 +0000
@@ -96,14 +96,19 @@
 protected:
     ImageModel::PointList getLocalPoints(View *v, int x, int y) const;
 
-    float getImageAspect(QString name) const;
+    bool getImageOriginalSize(QString name, QSize &size) const;
     QImage getImage(View *v, QString name, QSize maxSize) const;
 
+    void drawImage(View *v, QPainter &paint, const ImageModel::Point &p,
+                   int x, int nx) const;
+
     //!!! how to reap no-longer-used images?
 
     typedef std::map<QString, QImage> ImageMap;
     typedef std::map<const View *, ImageMap> ViewImageMap;
 
+
+
     static ImageMap m_images;
     mutable ViewImageMap m_scaled;