Convert PICT to NSImage
Convert PICT to NSImage
- Subject: Convert PICT to NSImage
- From: Ian was here <email@hidden>
- Date: Mon, 27 Jun 2005 09:34:36 -0700 (PDT)
I'm trying to convert a PICT into an NSImage and am
having no luck at it. The following code fails. Has
anyone been successful at this? Thanks.
HLock( (Handle)Pict );
NSPICTImageRep *pictImage = [NSPICTImageRep
imageRepWithData:[NSData dataWithBytes:Pict
length:GetHandleSize( (Handle)Pict )]];
if ( pictImage == nil )
{
NSLog(@"failed");
}
HUnlock( (Handle)Pict );
[newImage lockFocus];
[pictImage drawAtPoint:NSZeroPoint];
[newImage unlockFocus];
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden