Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2005

Tip: Looking for answers? Try searching our database.

2DGraphics vs JPEG

Thread view: 
Mario - 21 Sep 2005 13:03 GMT
       Maybe I'm someone boring with my questions about way of displaying and
printing content of JPanel, but you must understand that all little tests
of my application don't give the speed I need and, the other thing is, that
examples on Net shows how to display and print pictures (jpg for example)
or 2DGraphics.
       So, what is, memory and speed of displaying and printing, better:
1.
       g2d.drawRectangle(...);
       g2d.drawLine(...);
       g2d.draw...
               and so on, width: 210 mm x 6
                          height: 297 mm x 6

or

2. draw all that, saving as a jpg picture with the JAVA ADVANCED IMAGES
packages and than displaying and printing as a picture.

The content of a JPanel is a diagram which need to be continued (printing)
on a next pages, through the x-axis and the y-axis.
       
Oliver Wong - 21 Sep 2005 14:39 GMT
>        Maybe I'm someone boring with my questions about way of displaying
> and
[quoted text clipped - 18 lines]
> The content of a JPanel is a diagram which need to be continued (printing)
> on a next pages, through the x-axis and the y-axis.

   You say you're doing tests, so why not test this as well and give us
your results?

   - Oliver
Roedy Green - 21 Sep 2005 17:39 GMT
>2. draw all that, saving as a jpg picture with the JAVA ADVANCED IMAGES
>packages and than displaying and printing as a picture.

JPGs are for photographs. If you used that technique, you would use
PNG format.

It depends on how complex the drawing is and how much computation is
required to draw it which approach will be faster. You have to take
into account transmission time as well.  You can do a quick check
which will be faster by simply displaying a dummy image and comparing
the speed of that with what you are doing now.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Mario - 22 Sep 2005 09:05 GMT
>>2. draw all that, saving as a jpg picture with the JAVA ADVANCED IMAGES
>>packages and than displaying and printing as a picture.
[quoted text clipped - 7 lines]
> which will be faster by simply displaying a dummy image and comparing
> the speed of that with what you are doing now.

OK. I will try with png. If you don't mind, I would like to send you a
JPanel content, just to see it. I tried once before on a
look-on@mindprod.com.invalid
but without success. So, could you please send me a correct mail address. If
you don't mind, of course.
Roedy Green - 22 Sep 2005 09:28 GMT
>OK. I will try with png. If you don't mind, I would like to send you a
>JPanel content, just to see it. I tried once before on a
>look-on@mindprod.com.invalid
>but without success. So, could you please send me a correct mail address. If
>you don't mind, of course.

That is a munged address containing the instructions of how to find my
email address which I don't want publicly posted.  It is saying look
on  http://mindprod.com   the .invalid is warning you that is not it
itself a legit email address.

http://mindprod.com/feedback/feedback.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Mario - 22 Sep 2005 09:51 GMT
I did. When I cath the time I must investigate your interesting site.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.