com.nwalsh.saxon
Class ImageIntrinsics

java.lang.Object
  extended bycom.nwalsh.saxon.ImageIntrinsics
All Implemented Interfaces:
ImageObserver

public class ImageIntrinsics
extends Object
implements ImageObserver

Saxon extension to examine intrinsic size of images

$Id: ImageIntrinsics.java,v 1.1 2002/05/08 02:12:29 nwalsh Exp $

Copyright (C) 2002 Norman Walsh.

This class provides a Saxon extension to find the intrinsic size of images.

Change Log:

1.0

Initial release.

Version:
$Id: ImageIntrinsics.java,v 1.1 2002/05/08 02:12:29 nwalsh Exp $
Author:
Norman Walsh ndw@nwalsh.com

Field Summary
(package private)  int depth
           
(package private)  Image image
           
(package private)  boolean imageFailed
           
(package private)  boolean imageLoaded
           
(package private)  int width
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ImageIntrinsics(String imageFn)
          Constructor for ImageIntrinsics
 
Method Summary
 int getDepth(int defaultDepth)
           
 int getWidth(int defaultWidth)
           
 boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageLoaded

boolean imageLoaded

imageFailed

boolean imageFailed

image

Image image

width

int width

depth

int depth
Constructor Detail

ImageIntrinsics

public ImageIntrinsics(String imageFn)

Constructor for ImageIntrinsics

Method Detail

getWidth

public int getWidth(int defaultWidth)

getDepth

public int getDepth(int defaultDepth)

imageUpdate

public boolean imageUpdate(Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface ImageObserver