Camera using phonegap - iphone

I have a small query.
If i use the camera api of phomnegap, it brings up the complete camera screen on the app.
Is their a way by which we can use some part of the camera screen for our logo or insert some text.

You can't with the built in camera API. I don't think it would really be expected, either.

Not using stock PhoneGap. You would instead need to use some native iOS AV APIs from Objective C.

Related

How to record screen to video on iPhone with openGL (view preview layer) and UIkit elements?

I have searched everywhere and tried mixing and matching different bits of code but I haven't found anything that works or anyone with the same question.
Basically I want to be able to create video demos of iPhone apps that include standard UIKit elements and also the image coming from the camera (video preview layer). I don't want to use airPlay or iOS simulator to project onto the desktop then capture because I want to be able to make videos outside in public. I have successfully been able to video capture the screen with this code but with the video preview layer being blank. I read that its because its using openGL and what I'm capturing is from the CPU, not the GPU. I have successfully used GPUImage from Brad Larson to capture the video preview layer but it doesn't capture the rest of the UIView. I have seen code that combines both and converts to an image but I'm not sure if that would be too slow for realtime video capture. Can someone point me in the right direction?
It might not be the cleanest solution, but it will work nonetheless: did you consider jailbreaking? I hope Apple does sue me for this one but if you really want to record your screen then simply install a screen recorder. Enough options can be found: http://www.google.be/search?q=iphone+jailbreak+record+screen
And if you don't like it: recover your phone for a previous backup.
(for the record: I'm against jailbreaking and posting this from a productivity point of view)

Capturing image through camera, even being inside application

Is it possible to make camera work from, application code? As here is need to capture Image inside my application through iPhone camera. And to upload that on web.
Yes.

iPhone Screen Capturing Question

I'm writing an iPhone App that allows people to share images that may be copyrighted(not illegally). The issue I am having is that I'm looking for a way to work around the screen capturing. Is there any possible way you can disable screen capturing or possibly distort the image in some way so capturing will be useless, maybe even block the images when a screen capture is trying to be taken?
That is impossible because it is embedded in iOS itself. Maybe some private APIs, but then there is no app store for your app.
Watermarking the images may be a good half-way solution.
iOS screen capture does not support capturing everything. It does not capture OpenGL or YouTube for example. So if you can manage to implement showing images using OpenGL instead of the simple way using UIKit they would not show up on a screen shot.

What is the iPhone API or Class that does picture scrolling with the cool reflection effect?

For example, in CNN's iPhone app, if you rotate the phone into landscape mode, it shows all the stories as pictures that you can scroll with your finger. It looks really polished with even a "reflection" effect. I've seen another app also do this, leading me to believe that it is a standard iPhone SDK API.
Here is a link to a screenshot from the CNN app so you can see what I'm talking about:
http://www.itnewsafrica.com/?p=8422
Anyone know what Class this is?
Thanks!
Try this: Open source CoverFlow library for iPhone
Also do a google search for Coverflow. I think that might do what you want or something close to it.

iPhone camera in simulator

Is there a way to test code using iPhone camera in the simulator?
(Somebody must have written something - you could have a replacement component that simulates the camera)
In the simulator there are some sample photo library images that you can access.
Use: UIImagePickerControllerSourceTypePhotoLibrary
If you want to test your actual camera API usage, you would have to closely emulate a fairly large non-trivial portion of the AVFoundation framework.
If you just want to test the rest of your app, you could just ifdef out all the camera related stuff and replace your image capture and preview data with a static png.