Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ImageViews

ImageViews
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
May 4, 2001, 09:04 PM
 
I am using an NSImageView for my app's drawing. So I draw some pictures into an NSImage and then set the image view to that image. I then send the view a needsDisplayInRect message telling it what parts of the image have actually changed. Usually, only a small portion of the image has changed. I am updating 20 times a second for large images, so performance matters.

However, I've noticed using QuartzDebug that my app is redisplaying the entire image instead of just the smaller rectangle that I marked as needing a redisplay. This is really hurting the performance.

Is it possible to have the ImageView only update the smaller area? Or do I need to use another kind of view for this sort of selective redrawing?
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
Mac Elite
Join Date: Sep 2000
Location: Eagan, MN
Status: Offline
Reply With Quote
May 4, 2001, 09:12 PM
 
Try the displayRect: method. I don't know if it'll work any better, but it's worth a shot.

------------------
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:57 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2