ScreenSaver Problem
ScreenSaver Problem
- Subject: ScreenSaver Problem
- From: Aidas Dailide <email@hidden>
- Date: Sat, 15 Mar 2003 22:17:54 +0200
Hi,
This is quite easy, because ScreenSaver Context is just a simple view.
To draw JPG image, first you need to load it to NSImage and then use
one of NSImage's drawing commands like -
(void)compositeToPoint:(NSPoint)aPoint
operation:(NSCompositingOperation)op.
To draw text you should use NSString. First load your text into
NSString and then use - (void)drawAtPoint:(NSPoint)aPoint
withAttributes:(NSDictionary *)attributes.
Hi guys!
Does anyone know how to draw a JPG image in an ScreenSaver Context? And
text?
Aidas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.