• 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
Capturing the Content of a IKImageBrowserView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capturing the Content of a IKImageBrowserView


  • Subject: Capturing the Content of a IKImageBrowserView
  • From: Anthony Mittaz <email@hidden>
  • Date: Wed, 09 Jan 2008 08:00:32 -0800

Hello,

I'm currently trying to capture the content of a IkImageBrowserView but the image resulting from this operation is always blank.

My code:

[MyIkImageBrowserView lockFocus];
NSBitmapImageRep *imageRep = [MyIkImageBrowserView bitmapImageRepForCachingDisplayInRect:[MyIkImageBrowserView frame]];
[MyIkImageBrowserView cacheDisplayInRect:[MyIkImageBrowserView frame] toBitmapImageRep:imageRep];
[MyIkImageBrowserView unlockFocus];

NSImage *image = [[NSImage alloc] initWithSize:sizeOfMyIkImageBrowserView];
[image addRepresentation:imageRep];


[imageViewOfTheView setImage:image];

If someone could give me a better solution i would be more than happy.

Thanks
Anthony Mittaz
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Capturing the Content of a IKImageBrowserView
      • From: Thomas Goossens <email@hidden>
  • Prev by Date: Re: Garbage collection problem
  • Next by Date: Re: Global Text replacemant
  • Previous by thread: Re: Global Text replacemant
  • Next by thread: Re: Capturing the Content of a IKImageBrowserView
  • Index(es):
    • Date
    • Thread