Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3483 > unrolled thread

Image Displayer

Started by"Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this>
First post2011-04-27 15:45 +0000
Last post2011-04-27 15:45 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.java.gui


Contents

  Image Displayer "Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000
    Re: Image Displayer "mekane" <mekane@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000
      Re: Image Displayer "Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000
    Re: Image Displayer "Philipp" <philipp@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000
    Re: Image Displayer "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000

#3483 — Image Displayer

From"Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
SubjectImage Displayer
Message-ID<76f67313-1255-4056-b072-8dc634fa0c42@c65g2000hsa.googlegroups.com>
  To: comp.lang.java.programmer
I want to figure out how to read a JPG file by just using the read
method in the InputStream class then I want to create a GUI component
that can display it.

1) How are the bytes formatted in a JPG file?
2) What is the best way to color individual pixels in a JComponent.

Please don't tell me to just use ImageIO and to draw it using a
Graphics object because I know how to do that.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#3484

From"mekane" <mekane@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
Message-ID<2vJUj.15249$V14.728@nlpi070.nbdc.sbc.com>
In reply to#3483
  To: comp.lang.java.programmer
Chase Preuninger wrote:
> I want to figure out how to read a JPG file by just using the read
> method in the InputStream class then I want to create a GUI component
> that can display it.
> 
> 1) How are the bytes formatted in a JPG file?

Have you Googled for the JPEG spec?


> 2) What is the best way to color individual pixels in a JComponent.
> 
> Please don't tell me to just use ImageIO and to draw it using a
> Graphics object because I know how to do that.


If I were you I would use the ImagIO packa-- oh, yeah, never mind. Good 
luck with your project.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3485

From"Chase Preuninger" <chase.preuninger@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
Message-ID<95b64a52-8718-4bfe-b906-17617bc6b165@y38g2000hsy.googlegroups.com>
In reply to#3484
  To: comp.lang.java.programmer
I'm just intrested in seeing if I can do it.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3487

From"Philipp" <philipp@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
Message-ID<1210336859_4558@sicinfo3.epfl.ch>
In reply to#3483
  To: comp.lang.java.programmer
Chase Preuninger wrote:
> 1) How are the bytes formatted in a JPG file?

In case you are also interested in other formats, see this very useful page:
http://www.martinreddy.net/gfx/2d-hi.html

HTH Phil

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3491

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
Message-ID<4jla2413vbtca5jv4bhesconkr65oa571n@4ax.com>
In reply to#3483
  To: comp.lang.java.programmer
On Thu, 8 May 2008 13:30:10 -0700 (PDT), Chase Preuninger
<chasepreuninger@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>1) How are the bytes formatted in a JPG file?

See http://mindprod.com/jgloss/jpg.html
http://mindprod.com/jgloss/gif.html
and follow the links.

If all you want is size info quickly, download
http://mindprod.com/products1.html#COMMON11
and look at ImageInfo

If you just want to mess around at a low level, tackle GIF or PNG
first. They are much simpler formats.
-- 

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web