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 / April 2008

Tip: Looking for answers? Try searching our database.

Graphics2D.drawImage() and clipping region

Thread view: 
Kenneth P. Turvey - 23 Apr 2008 11:59 GMT
I assume that the drawImage() method in the Graphics class is smart
enough not to draw the image outside of the clipping region...

I don't really have to only draw a subImage to get this performance boost
do I?

Thanks.

Signature

Kenneth P. Turvey <kt-usenet@squeakydolphin.com>

Knute Johnson - 23 Apr 2008 17:44 GMT
> I assume that the drawImage() method in the Graphics class is smart
> enough not to draw the image outside of the clipping region...
[quoted text clipped - 3 lines]
>
> Thanks.

Clipping is pretty fast.  Drawing a smaller image would probably be
quicker but then you have the overhead of creating the smaller image.  I
don't think it will say you enough to make much difference either way.

Signature

Knute Johnson
email s/nospam/linux/

     ------->>>>>>http://www.NewsDem



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.