Screensaver- load image with transparent background
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.