¡@

Home 

2014/10/15 ¤U¤È 10:15:42

iphone Programming Glossary: val

UIImagePickerController and extracting EXIF data from existing photos

http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos

about the EXIF format and the lack of high level API in the library I don't manage to get the values for the EXIF tags. Here's my code in case any of you can go further #import EXFJpeg.h void imagePickerController.. NSNumber numberWithInt EXIF_Model .... .... The retrieving of tags definition is OK but all tag values returns nil In case you want to give a try to the library you need to define a global variable to.. autorelease Helper methods for location conversion NSMutableArray createLocArray double val val fabs val NSMutableArray array NSMutableArray alloc init double deg int val array addObject NSNumber..

Convert image to grayscale

http://stackoverflow.com/questions/1298867/convert-image-to-grayscale

this question What exactly takes place when you use this function Is the function returning an invalid image or is the display not showing it correctly This is the method I use to convert to greyscale... sizeof uint32_t 1 process the image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB.. image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB context CGBitmapContextCreate..

UIImagePickerController and extracting EXIF data from existing photos

http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos

and it seems to work. However because of my limited knwoledge about the EXIF format and the lack of high level API in the library I don't manage to get the values for the EXIF tags. Here's my code in case any of you can go further #import EXFJpeg.h void imagePickerController UIImagePickerController picker didFinishPickingImage.. NSNumber numberWithInt EXIF_DateTime id t exifData tagValue NSNumber numberWithInt EXIF_Model .... .... The retrieving of tags definition is OK but all tag values returns nil In case you want to give a try to the library you need to define a global variable to get it running as explained in the doc but hum.. BOOL gLogging.. taggedJpegData jpegScanner release return taggedJpegData autorelease Helper methods for location conversion NSMutableArray createLocArray double val val fabs val NSMutableArray array NSMutableArray alloc init double deg int val array addObject NSNumber numberWithDouble deg val val deg val val 60 double minutes..

Convert image to grayscale

http://stackoverflow.com/questions/1298867/convert-image-to-grayscale

problem Thanks. iphone cocoa touch cgimage share improve this question What exactly takes place when you use this function Is the function returning an invalid image or is the display not showing it correctly This is the method I use to convert to greyscale. UIImage convertToGreyscale UIImage i int kRed 1 int kGreen.. a UIImage uint8_t result uint8_t calloc m_width m_height sizeof uint32_t 1 process the image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB context CGBitmapContextCreate result m_width.. calloc m_width m_height sizeof uint32_t 1 process the image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB context CGBitmapContextCreate result m_width m_height 8 m_width sizeof..

UIImagePickerController and extracting EXIF data from existing photos

http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos

of my limited knwoledge about the EXIF format and the lack of high level API in the library I don't manage to get the values for the EXIF tags. Here's my code in case any of you can go further #import EXFJpeg.h void imagePickerController UIImagePickerController.. id t exifData tagValue NSNumber numberWithInt EXIF_Model .... .... The retrieving of tags definition is OK but all tag values returns nil In case you want to give a try to the library you need to define a global variable to get it running as explained.. release return taggedJpegData autorelease Helper methods for location conversion NSMutableArray createLocArray double val val fabs val NSMutableArray array NSMutableArray alloc init double deg int val array addObject NSNumber numberWithDouble..

Convert image to grayscale

http://stackoverflow.com/questions/1298867/convert-image-to-grayscale

share improve this question What exactly takes place when you use this function Is the function returning an invalid image or is the display not showing it correctly This is the method I use to convert to greyscale. UIImage convertToGreyscale.. m_width m_height sizeof uint32_t 1 process the image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB.. 1 process the image back to rgb for int i 0 i m_height m_width i result i 4 0 int val m_imageData i result i 4 1 val result i 4 2 val result i 4 3 val create a UIImage colorSpace CGColorSpaceCreateDeviceRGB context CGBitmapContextCreate..

How can I add CGPoint objects to an NSArray the easy way?

http://stackoverflow.com/questions/899600/how-can-i-add-cgpoint-objects-to-an-nsarray-the-easy-way

With UIKit Apple added support for CGPoint to NSValue so you can do NSArray points NSArray arrayWithObjects NSValue valueWithCGPoint CGPointMake 5.5 6.6 NSValue valueWithCGPoint CGPointMake 7.7 8.8 nil List as many NSValue instances as you.. NSValue so you can do NSArray points NSArray arrayWithObjects NSValue valueWithCGPoint CGPointMake 5.5 6.6 NSValue valueWithCGPoint CGPointMake 7.7 8.8 nil List as many NSValue instances as you have CGPoint and end the list in nil. All objects..