• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ScreenSaver Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSRunLoop looping more than once?
  • Next by Date: Re: Synchronize timer with internal clock
  • Previous by thread: ScreenSaver Problem
  • Next by thread: Interface builder : detecting text truncations in dialogs automatically - just a dream?
  • Index(es):
    • Date
    • Thread