Image.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_IMAGE_H
00002 #define JAVA_AWT_IMAGE_H 1
00003 
00004 #ifndef JAVA_AWT_IMAGE_IMAGEOBSERVER_H
00005 #include <java_awt_image/ImageObserver.h>
00006 #endif /* JAVA_AWT_IMAGE_IMAGEOBSERVER_H */
00007 #ifndef JAVA_AWT_IMAGE_IMAGEPRODUCER_H
00008 #include <java_awt_image/ImageProducer.h>
00009 #endif /* JAVA_AWT_IMAGE_IMAGEPRODUCER_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00017     class Graphics;
00018     using namespace image;
00019 
00030     class JAVA_AWT_SPEC Image : virtual public Object {
00031 
00032     public:
00033 
00034       enum IMAGE_SCALE_HINTS {
00035 
00040         SCALE_DEFAULT = 1,
00041 
00047         SCALE_FAST = 2,
00048 
00054         SCALE_SMOOTH = 4,
00055 
00065         SCALE_REPLICATE = 8,
00066 
00075         SCALE_AREA_AVERAGING = 16,
00076 
00077       };
00078 
00089       virtual jint getWidth(const Ref<ImageObserver>& observer) const = 0;
00090 
00101       virtual jint getHeight(const Ref<ImageObserver>& observer) const = 0;
00102 
00111       virtual Ref<ImageProducer> getSource() const = 0;
00112 
00120       virtual Ref<Graphics> getGraphics() const = 0;
00121 
00142       virtual ObjectRef getProperty(const String& name, const Ref<ImageObserver>& observer) const = 0;
00143 
00166       virtual Ref<Image> getScaledInstance(jint width, jint height, jint hints) const;
00167 
00184       virtual void flush() = 0;
00185 
00186     private:
00187 
00188       REGISTER_MEMBERS;
00189 
00190     };
00191 
00192   } // namespace awt
00193 } // namespace java
00194 
00195 #endif /* JAVA_AWT_IMAGE_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3