ˇ@

Home 

2014/10/15 ¤U¤Č 10:04:54

iphone Programming Glossary: capture

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

equivalent to the 'eyedropper' tool in photoshop where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its color. Getting the UIImage is the..

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

Javascript inside the UIWebView. Not a good solution but it worked for my needs. I was able to capture a long press on an element as well as tap swipe pinch and rotate. Of course I was using only local content...

didFinishPickingMediaWithInfo return nil photo

http://stackoverflow.com/questions/3088874/didfinishpickingmediawithinfo-return-nil-photo

return nil photo I am working to capture an image that is returned in 4.0 using void imagePickerController UIImagePickerController picker didFinishPickingMediaWithInfo..

How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:?

http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter

for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your local scope instead. int parameter1 12 float parameter2 144.1 Delay execution..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but.. UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

iPhone application and need to essentially implement something equivalent to the 'eyedropper' tool in photoshop where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its color. Getting the UIImage is the easy part but is there a way to convert the UIImage data into..

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

with 3.0 so I ended up doing all the gesture handling with Javascript inside the UIWebView. Not a good solution but it worked for my needs. I was able to capture a long press on an element as well as tap swipe pinch and rotate. Of course I was using only local content. Edit You can look in PhoneGap for an example of sending..

didFinishPickingMediaWithInfo return nil photo

http://stackoverflow.com/questions/3088874/didfinishpickingmediawithinfo-return-nil-photo

return nil photo I am working to capture an image that is returned in 4.0 using void imagePickerController UIImagePickerController picker didFinishPickingMediaWithInfo NSDictionary info picker parentViewController..

How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:?

http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter

share improve this question I think you're looking for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your local scope instead. int parameter1 12 float parameter2 144.1 Delay execution of my block for 10 seconds. dispatch_after dispatch_time..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images on retina devices. Does anybody know.. UIImage img UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions as documented on this page . Pass 0.0 for..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

motionBegan: Not Working

http://stackoverflow.com/questions/1342674/motionbegan-not-working

a bit of a problem when I attempt to use void motionBegan UIEventSubtype motion withEvent UIEvent event in order to capture a shake event. The problem is that the function isn't even running even when I override canBecomeFirstResponder and set..

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

implement something equivalent to the 'eyedropper' tool in photoshop where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its color. Getting the UIImage is the easy part but is there..

Disabling iPhone screenshot feature

http://stackoverflow.com/questions/1586592/disabling-iphone-screenshot-feature

will show up on the phone. My client is worried that the information could be caught using the iphone screen capture feature home power button then emailed or synced from the phone. Is there any way to disable the screen capture feature.. screen capture feature home power button then emailed or synced from the phone. Is there any way to disable the screen capture feature Can this be done programatically or is is possible through a configuration profile iphone screenshot share improve..

Is there a way I can capture my iPhone screen as a video?

http://stackoverflow.com/questions/200049/is-there-a-way-i-can-capture-my-iphone-screen-as-a-video

there a way I can capture my iPhone screen as a video I want to be able to capture my iPhone's screen as a video but I'm not sure the best way to.. there a way I can capture my iPhone screen as a video I want to be able to capture my iPhone's screen as a video but I'm not sure the best way to do this. Can anyone help guide me on how to best do this..

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

gesture handling with Javascript inside the UIWebView. Not a good solution but it worked for my needs. I was able to capture a long press on an element as well as tap swipe pinch and rotate. Of course I was using only local content. Edit You can..

didFinishPickingMediaWithInfo return nil photo

http://stackoverflow.com/questions/3088874/didfinishpickingmediawithinfo-return-nil-photo

return nil photo I am working to capture an image that is returned in 4.0 using void imagePickerController UIImagePickerController picker didFinishPickingMediaWithInfo..

What does this ^ syntax mean in Objective-C?

http://stackoverflow.com/questions/3499186/what-does-this-syntax-mean-in-objective-c

traditional function pointers. The key differences are Blocks can be defined inline as śanonymous functions. Blocks capture read only copies of local variables similar to śclosures in other languages This is kind of functionality is common in dynamically..

How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:?

http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter

you're looking for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your local scope instead. int parameter1 12 float parameter2 144.1 Delay execution of my block for..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

to capture UIView to UIImage without loss of quality on retina display My code works fine for normal devices but creates blurry images.. UIGraphicsEndImageContext return img iphone uiimage scale retina display image capture share improve this question Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time

have the same experience or explain It's really bother me for a while time. thanks. € iphone image processing video capture avfoundation share improve this question I can't answer the specific question put but I've been successfully recording.. out to an H.264 encoded movie file That's without investigating audio. I end up getting CMSampleBuffers from the capture session and then pushing them into the pixel buffer adaptor. EDIT so my code looks more or less like with the bits you're.. problems with skimmed over and ignoring issues of scope to ensure I'm given incoming CMSampleBuffers AVCaptureSession captureSession alloc and init set your preferred preset etc AVCaptureDevice captureDevice default for video probably AVCaptureDeviceInput..

Uploading live streaming video from iPhone [duplicate]

http://stackoverflow.com/questions/5062266/uploading-live-streaming-video-from-iphone

AVCaptureVideoDataOutput alloc init outputDevice setSampleBufferDelegate self queue dispatch_get_main_queue initialize capture session AVCaptureSession captureSession AVCaptureSession alloc init autorelease captureSession addInput inputDevice captureSession.. outputDevice setSampleBufferDelegate self queue dispatch_get_main_queue initialize capture session AVCaptureSession captureSession AVCaptureSession alloc init autorelease captureSession addInput inputDevice captureSession addOutput outputDevice.. initialize capture session AVCaptureSession captureSession AVCaptureSession alloc init autorelease captureSession addInput inputDevice captureSession addOutput outputDevice make preview layer and add so that camera's view is displayed..

How to apply “filters” to AVCaptureVideoPreviewLayer

http://stackoverflow.com/questions/5156872/how-to-apply-filters-to-avcapturevideopreviewlayer

is to to conditionally apply simple image filters to the preview layer. The images aren't saved so I do not need to capture the output. For example I would like to toggle a setting that converts the video coming in on the preview layer to Black.. any performance issues this may cause. Is this the only way to accomplish my goal As I mentioned I am not looking to capture any of the AVCaptureSession's video merely preview it. iphone avfoundation avcapturesession share improve this question.. I mentioned I am not looking to capture any of the AVCaptureSession's video merely preview it. iphone avfoundation avcapturesession share improve this question Probably the most performant way of handling this would be to use OpenGL ES for filtering..

Localize Currency for iPhone

http://stackoverflow.com/questions/856019/localize-currency-for-iphone

and these amounts dollars yen etc. are stored as NSDecimalNumbers. I assume to be safe it's necessary to somehow capture the locale at the time of entry and then the currency symbol and store them in my instance along with the NSDecimalNumber..

How to capture current view screenshot and reuse in code? (iPhone SDK)

http://stackoverflow.com/questions/879064/how-to-capture-current-view-screenshot-and-reuse-in-code-iphone-sdk

to capture current view screenshot and reuse in code iPhone SDK I am attemting to transition from one UIView to another when the user..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

Capture 60fps in iPhone app

http://stackoverflow.com/questions/10344637/capture-60fps-in-iphone-app

60fps in iPhone app I am working on a project where we will be using iPhones as cameras for capturing a scene. When recording.. improve this question After some tinkering this answer has split into two parts How to capture frames at 60fps The AVCaptureSessionPreset1280x720 on the iPhone4s 5.1 with frame durations set to connection.videoMinFrameDuration CMTimeMake 1 60 connection.videoMaxFrameDuration.. which is quite pointless and very wearing for the bus. Luckily AVFoundation has a class that removes this round trip AVCaptureMovieFileOutput . If you let AVFoundation do the writing for you then the iPhone4S can capture and encode frames audio to..

iOS : Save image with custom resolution

http://stackoverflow.com/questions/11432169/ios-save-image-with-custom-resolution

do is re render the screenshot at the custom resolution. I modified your code to do this UIView captureView self.view Capture the screen shoot at native resolution UIGraphicsBeginImageContextWithOptions captureView.bounds.size captureView.opaque..

How to give sketch effect on image in iphone?

http://stackoverflow.com/questions/11861313/how-to-give-sketch-effect-on-image-in-iphone

iphone I am implementing an iPhone application in which I have implemented the following functionalities Select photo Capture photo Now I want to give a sketch effect to that photo like this one. How could I do this iphone share improve this question..

Capture iPhone screen with status bar included?

http://stackoverflow.com/questions/1291110/capture-iphone-screen-with-status-bar-included

iPhone screen with status bar included I am looking for a way to capture a screenshot on the iPhone with the top status..

Disabling iPhone screenshot feature

http://stackoverflow.com/questions/1586592/disabling-iphone-screenshot-feature

share improve this question if your customer could retain the ownership of a handset they can restrict Screen Capture feature using iPhone Configuration Utility . Make sure you don't give these phones to any one outside of this organization..

Basic description on how to record video in iOs 4

http://stackoverflow.com/questions/3173822/basic-description-on-how-to-record-video-in-ios-4

imagePickerControllerDidCancel UIImagePickerController picker process the cancellation of movie picker here NSLog @ Capture cancelled Super easy. For more details see the Multimedia Programming Guide About Audio and Video Using Video Recording..

video capture software for iPhone Simulator [closed]

http://stackoverflow.com/questions/4183768/video-capture-software-for-iphone-simulator

are always appreciated. regards iphone share improve this question The perfect tool is iPhone Simulator Capture SIMBL plugin Install SIMBL Download the code Modify Info.plist key SIMBLTargetApplications MaxBundleVersion and or SIMBLTargetApplications..

Capturing video while processing it through a shader on iPhone

http://stackoverflow.com/questions/5228406/capturing-video-while-processing-it-through-a-shader-on-iphone

of video using OpenGL ES I get stuck when trying to combine the two. What I have been trying to do is to use AVCaptureVideoOutput and the AVCaptureVideoDataOutputSampleBufferProtocol to process filter the video frames through OpenGL ES as.. ES I get stuck when trying to combine the two. What I have been trying to do is to use AVCaptureVideoOutput and the AVCaptureVideoDataOutputSampleBufferProtocol to process filter the video frames through OpenGL ES as in 2 and at the same time somehow.. to process filter the video frames through OpenGL ES as in 2 and at the same time somehow use AVCaptureMovieFileOutput to record the processed video as in 1 . Is this approach possible If so how would I need to set up the connections..

Custom transition between two UIViews

http://stackoverflow.com/questions/5511514/custom-transition-between-two-uiviews

it a frame that makes it fullscreen but don't add it to the screen yet View B has a UIImageView as it's topmost view Capture a UIImage of View A and set it as the image of View B's image view UIGraphicsBeginImageContext view.bounds.size viewA.layer..

iPhone:Programmatically compressing recorded video to share?

http://stackoverflow.com/questions/5687341/iphoneprogrammatically-compressing-recorded-video-to-share

UIVideoAtPathIsCompatibleWithSavedPhotosAlbum urlPath self copyTempVideoToMediaLibrary urlPath else NSLog @ Video Capture Error Captured video cannot be saved...didFinishPickingMediaWithInfo else NSLog @ Processing soon to saved photos album...else.. urlPath self copyTempVideoToMediaLibrary urlPath else NSLog @ Video Capture Error Captured video cannot be saved...didFinishPickingMediaWithInfo else NSLog @ Processing soon to saved photos album...else loop..

Realtime Audio/Video Streaming FROM iPhone to another device (Browser, or iPhone)

http://stackoverflow.com/questions/5719538/realtime-audio-video-streaming-from-iphone-to-another-device-browser-or-iphone

one at the moment. Audio can be part of stream or via telephone call on iphone. There are four ways I can think of... Capture frames on iPhone send frames to mediaserver have mediaserver publish realtime video using host webserver. Capture frames.. Capture frames on iPhone send frames to mediaserver have mediaserver publish realtime video using host webserver. Capture frames on iPhone convert to images send to httpserver have javascript AJAX in browser reload images from server as fast.. to httpserver have javascript AJAX in browser reload images from server as fast as possible. Run httpServer on iPhone Capture 1 second duration movies on iPhone create M3U8 files on iPhone have the other user connect directly to httpServer on iPhone..

How to make a uiactionsheet dismiss when you tap outside eg above it?

http://stackoverflow.com/questions/6172212/how-to-make-a-uiactionsheet-dismiss-when-you-tap-outside-eg-above-it

outside self dismissWithClickedButtonIndex 0 animated YES void showFromTabBar UITabBar view super showFromTabBar view Capture taps outside the bounds of this alert view UITapGestureRecognizer tap UITapGestureRecognizer alloc initWithTarget self action..

Convert html file to PDF Document in iOS using Cocoa-Touch

http://stackoverflow.com/questions/6316192/convert-html-file-to-pdf-document-in-ios-using-cocoa-touch

share improve this question To convert html to pdf you need to Create a Webview and load the HTML. Take Webview Capture. Convert it into PDF file. The second step webview capture have to be done once your webview content is loaded For this..

iPhone - Capture device button push

http://stackoverflow.com/questions/639721/iphone-capture-device-button-push

Capture device button push I know you cannot control device volume from within your application but I would like the device volume..

iPhone AVCaptureDeviceInput How to Set Quality of Audio Capture?

http://stackoverflow.com/questions/7796263/iphone-avcapturedeviceinput-how-to-set-quality-of-audio-capture

AVCaptureDeviceInput How to Set Quality of Audio Capture The following code is working fine some checking and code eliminated at.. AVCaptureDeviceInput How to Set Quality of Audio Capture The following code is working fine some checking and code eliminated at 44100 depth 2 which seems to be the default. Since.. default. Since this interface is usable but not documented well anyone know of how to change the default quality audioCaptureDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeAudio captureSession AVCaptureSession alloc init audioInput..