• 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
iPhone Generating and displaying images using Bitmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone Generating and displaying images using Bitmap


  • Subject: iPhone Generating and displaying images using Bitmap
  • From: Shraddha Karwan <email@hidden>
  • Date: Mon, 18 May 2009 13:33:01 +0530

Hi,

I have a buffer containing JPEG image data. I need to display this buffer in
form of images. I copied this buffer to a file and then used the following:

CGDataProviderRef ref = CGDataProviderCreateWithFilename([appFile
UTF8String]);
CGImageRef imgRef =
CGImageCreateWithJPEGDataProvider(ref,NULL,YES,kCGRenderingIntentSaturation);
UIImage *theImage = [[UIImage alloc] initWithCGImage:imgRef];

Then displaying the image.
For some images I get the images but for some I get the JPEG Image corrupt
error message.
When I test the same data with Windows application it is able to display the
image without any error.
Is my conversion from JPEG buffer to UIImage file appropriate or am I
missing out some thing?
_______________________________________________

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: iPhone Generating and displaying images using Bitmap
      • From: Gwynne Raskind <email@hidden>
  • Prev by Date: Re: LMSetKey[Rep]Thresh
  • Next by Date: Re: LMSetKey[Rep]Thresh
  • Previous by thread: Re: How to set multiple values placeholder for NSPopupButton selectedTag binding?
  • Next by thread: Re: iPhone Generating and displaying images using Bitmap
  • Index(es):
    • Date
    • Thread