as beginner in java, I have a basic question:
I have an array of shorts[] data = {10,2,37,4 ... 44}
I theres 20 rows 9 columns in the array, and i want to interpret the data as
UShort pixelvalues, by creating a DataBufferUShort from the data.
how do I go further from here? how do i create a SampleModel how do I create a
WriteableRaster and soforth, so that in the end i can operate on a BufferedImage.
So for short: how do I create a BufferedImage having only an array of numbers?
Ole
Eric Dofonsou wrote:
> Humm I do not quite get it...
> Why don't you just get a reference the panel object and call it's
> paint/repaint. methode....?????
>
> Don't read everything you believe.
> ----------------------------------------------------------------
> VVeB : triple Ws dot audiophile dot com slash wrick
> |V|@!l : wrick at audiophile dot com
> ---------------------------------------------( Eric Dofonsou )--
> On Tue, 26 Oct 1999, Tolga Sakman wrote:
>
> > Hello All,
> >
> > I am developing a swing application where the main frame is divided into 3
> > panels, w/ the following architecture:
> >
> > MainFrame (JFrame w/ BorderLayout)
> > |
> > |--ToolsPanel (JPanel, on the WEST)
> > |
> > |--StatusPanel (JPanel, on the SOUTH)
> > |
> > |--GraphicsPanel (JPanel, on the CENTER)
> >
> > I need my paint method to target the GraphicsPanel, but I -apparently- am
> > not able to do that, since I do not see any frames when I include the paint
> > method, and the shapes are drawn on the absolute JFrame. Can anybody tell me
> > how to reference this specific panel? Do I need to have a Canvas object to
> > draw on?
> >
> > Thanks,
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Tolga Sakman
> > Project Engineer
> >
> > Analytic & Computational Research, Inc. -- ACRi
> > Cincinnati, OH
> > Phone: 513-794-0888
> > Fax: 513-794-9779
> > [EMAIL PROTECTED]
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff JAVA2D-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".