• 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
NSJPEGFileType / JPEG writer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSJPEGFileType / JPEG writer


  • Subject: NSJPEGFileType / JPEG writer
  • From: "J. Anderson Thompson" <email@hidden>
  • Date: Sat, 17 Nov 2001 21:43:17 -0600

Now that I am back in the year 2001 I will try to post this again... sorry for the spam

Using the following code:

[[[[screenCapture representations] objectAtIndex:0] representationUsingType:NSJPEGFileType properties:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithFloat:1.0], NSImageCompressionFactor, nil]] writeToFile:[@"~/screen.jpeg" stringByExpandingTildeInPath] atomically:NO];

I get this error:

2000-11-17 17:51:26.088 ScreenServerX[1053] JPEG writer requires compacted components (bits/component * components/pixel = bits/pixel)

Any help would be highly appreciated.


  • Follow-Ups:
    • Re: NSJPEGFileType / JPEG writer
      • From: Andrew Platzer <email@hidden>
  • Prev by Date: Re: &xxx; thingies
  • Next by Date: Converting NSAppleEventDescriptor to AppleEvent
  • Previous by thread: File updates
  • Next by thread: Re: NSJPEGFileType / JPEG writer
  • Index(es):
    • Date
    • Thread