On Sat, 2002-04-27 at 18:34, Drew Varner wrote:
> I don't really see the purpose of reinventing the wheel on this one. I think my 
> answer will be:
> 
> 1) implementing the getThumbnail() method to return byte[]. I don't think it is 
> implemented/supported yet.
> 2) writing sample code to convert it to a java.awt.Image()
> 3) maybe demonstrate writing it to a PNG or something
> 4) maybe integrate a thumbnail viewer into the POIBrowser
> 

Anything you do to this effect will be greatfully accepted in the
contrib area.  We might consider creating a new category for things like
this that aren't really GUI but kinda are, but aren't...etc.

> Returning a java.awt.Image will work in a 1.4 environment without X 
> dependencies.
> 
> java -Djava.awt.headless=true SomeJavaProgram
> 
> executes the program without X dependencies. I'll mention this in the sample 
> code I write. My interest in this is using Thumbnails in a document management 
> sytem as a preview.
> 
> I am not hot on implementing a non-standard image class (that couldn't subclass 
> java.awt.Image) just to represent a thumbnail. 
> 
> Drew
> 
> Quoting "Andrew C. Oliver" <[EMAIL PROTECTED]>:
> 
> > What I'd like to see is 1> an awtless byte[] abstraction that can be
> > easily used to create an Image  2> an extension library in contrib for
> > those who want certain less then raw implementations.  > 
> > ...
> > 
> > Cool..  So come up with a solution that lets us run nicely on servers
> > (our #1 target) and yet provide a nice abstraction.  Perhaps what you
> > might need is a cleanroom image class.  I'd not think it would be too
> > hard.
> > 
> > -Andy
> 
> ___________________
> Drew Varner
> [EMAIL PROTECTED]
-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
                            format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
                        - fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh

Reply via email to