• 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
Large view to NSBitmapImageRep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Large view to NSBitmapImageRep


  • Subject: Large view to NSBitmapImageRep
  • From: Gideon King <email@hidden>
  • Date: Thu, 1 May 2003 21:46:12 +1000

I am trying to get a very large view (2000x4000 pixels) into an NSBitmapimageRep - the view is in a scrollview, so I can't get the full image with initWithFocusedViewRect as I just get the bit that's displayed on screen.

I can get the PDF data using dataWithPDFInsideRect, but I'm not sure how to turn that into an NSBitmapImageRep - all the methods I've tried go through the cache mechanism somewhere along the way, and I get the message "can't cache image". If I create an image and add a pdf rep that has been created from the data and try to get the tiff representation to create a bitmap rep with the image data, the tiff representation is empty.

I have tried to create an image, lock focus on it and draw the view into it, but that creates a cached image rep, which won't cache because it is too big. I have tried setting data retained to YES, but that still doesn't seem to help.

From the posts on the list, I see people have discussed some of the same issues before, but there doesn't seem to be an answer that works with large images, so any suggestions would be greatly appreciated.


Thanks

Gideon
_______________________________________________
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.

  • Follow-Ups:
    • Drawing a dimmed button cell
      • From: Gideon King <email@hidden>
    • Re: Large view to NSBitmapImageRep
      • From: Marco Binder <email@hidden>
    • Newbie Q: error on doAlert
      • From: Michael Hanna <email@hidden>
  • Prev by Date: Re: Graphic or Aqua Theme
  • Next by Date: Newbie Q: error on doAlert
  • Previous by thread: Re: User/Pass Authentication
  • Next by thread: Newbie Q: error on doAlert
  • Index(es):
    • Date
    • Thread