| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
- (void)animateOneFrame
{
NSImage *image;
NSRect myRect;
NSSize mySize;
image = [[NSImage imageNamed:@"mypict.jpg"] copy];
mySize = [image size];
myRect.origin.x = 0;
myRect.origin.y = 0;
myRect.size = mySize;
[image lockFocus];
[image drawInRect:[self bounds] fromRect:myRect
operation:NSCompositeCopy fraction:0.5];
[image unlockFocus];
}
| References: | |
| >How do I make a screensaver that draws pictures? (From: Taxxodium <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.