Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is it only a performace problem?



Shawn Erickson wrote:

On Wednesday, August 27, 2003, at 06:00 AM, Edoardo Panfili wrote:

This is the code, I use BufferedOutputStream(os,1024*200)
but nothing changes, if I cut out the code betweeen "==="
all works better.

// ======== cutting out this part works better ======
start("Drawing something... ");
Graphics2D gr2d=(Graphics2D) bi.createGraphics();
gr2d.setColor(Color.RED);
gr2d.drawLine(1,1,10,10);
stop("OK");
// ==================================================


I would profile your whole app to see how your time is being spent (as in actually using the profiler).

Also what type of images are you dealing with?

As you can see I have the timing of every single operation, "white.jpg"
is a simple jpeg "all white" image 600x600 pixel.
I have removed the JPEG writer and inserted a PNG one, in this situation
the graphical output is incorrect, (I can't see the little red line).

edoardo
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: is it only a performace problem? (From: Shawn Erickson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.