When saving a bmp file on the iphone, is the file being manipulated ?

Hi, i've searched the forum, the net and documentation and couldn't find the answer-

When i save a bmp file to my iphone photos library, for example, when downloading it from a web or from an email, is the BMP file being manipulated to another form when it is saved on the iphone file system ?
my application deals with BMP files (among others). in my application flow, a user will choose a BMP image from the photo library (an image he previously put there as described before) and the application will need to use this image's BMP data AND i MUST be sure that the BMP file data did not change at all since the time it was stored in the photo library until my application retrieved it.

would really appreciate an answer,
thanks a lot.

imac, Mac OS X (10.5.7)

Posted on Jul 15, 2009 12:41 PM

Reply
5 replies

Jul 16, 2009 12:12 AM in response to Bang A. Lore

Hi,
Thanks,

The reason i work with BMP is that part of my app algorithm is an old and working C code which does what i need over a BMP file. Implementing that code in objective-c might be too much of an overhead for me.

You're right about the test. i'll do it ASAP.

Does anybody know if there's a simple way or what is the most simple way to write a PNG file to my Documents directory (app sandbox) as a BMP ? and i mean a real BMP image file.. a one i can actually open with some preview application.
assuming that a user chose a PNG image from the photo library (i'm using UIImagePickerControl), i recieve the image as UIImage* (to the userFinishedPickingImageithInfo ) in my app and i would like to write the selected image as a pure BMP file to my Documents dir.

thanks !

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When saving a bmp file on the iphone, is the file being manipulated ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.