• 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- load image with transparent background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Screensaver- load image with transparent background


  • Subject: Screensaver- load image with transparent background
  • From: Michael Yuen <email@hidden>
  • Date: Mon, 21 Jul 2003 21:14:17 -0400

Hello everyone,

In a coca screensaver, using this method to load images -

NSBundle *bundle;
NSString *path;

bundle = [NSBundle bundleForClass: [self class]];
path = [bundle pathForResource: @"atomsymbol" ofType: @"tiff"];
image = [[NSImage alloc] initWithContentsOfFile: path];


This would load images fine, however unable to see the images's
transparent background. I see black box around the image.

I tried PNG, TIFF, GIF, JPG; does anyone know why and what to do?

Thanks in advance,

-Michael
email@hidden
_______________________________________________
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: unimplemented methods
  • Next by Date: Re: Accessor method for array of floats
  • Previous by thread: Re: unimplemented methods
  • Next by thread: FYI: Bug in -getInfoForFile:application:type:
  • Index(es):
    • Date
    • Thread