Drew Varner <[EMAIL PROTECTED]> wrote:
>I don't really see the purpose of reinventing the wheel on this one. I think m
y 
>answer will be:
>
>1) implementing the getThumbnail() method to return byte[]. I don't think it i
s 
>implemented/supported yet.

+1


>2) writing sample code to convert it to a java.awt.Image()

+1


>3) maybe demonstrate writing it to a PNG or something

+0


>4) maybe integrate a thumbnail viewer into the POIBrowser

+10


>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.

We must ensure that using java.awt.Image does not load 
the X11 libraries.


>I am not hot on implementing a non-standard image class (that couldn't subclas
s 
>java.awt.Image) just to represent a thumbnail.

+1. Re-inventing the wheel would be a waste of time.


Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH i. Gr.
  Dipl.-Inform.
  Rainer Klute             E-Mail:  [EMAIL PROTECTED]
  K�rner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423

Reply via email to