AVFoundation adjusting white balance while focus is close up and background (out-of-focus) is dark - objective-c

Can anyone please point me in the correct direction or tell me if what I am trying to do is simply not possible?
I'm trying to take a picture of something close up. I am able to lock the focus. That works well. We have found that keeping the torch on while trying to focus and take the picture works best. The issue I cannot seem to resolve is the white balance. If the background is dark, the object I'm trying to focus on is too light. Is there a trick to adjusting the white balance when the item in focus is close up and the background (out of focus) is dark?
I can't provide the code, it's too much. I suppose if necessary I could create a sample project, but my question is probably more conceptual.
Thank you in advance for any help you can provide.

The answer to this question, for those who run across the same issue, is to use a CALayer for an exposeBox and another CALayer for a focusBox. That appeared to do the trick. Of course, I would still like to hear of solutions from others and I'm still curious about controlling the aperture.
Thank you.

Related

White Border on Photoshop Text

I am trying to match the "teletext holidays" in the image below (with the white bits connecting all the letters:
I have achieved the following by going to the layers section, right-clicking the text layer, and select “Blending Options.” Then marking the checkbox next to “Stroke.”
Any hints or tips to point me in the correct direction would be appreciated. I appreciate moving the letters within the font closer together will help so will work on that now.
Any help appreciated.
Update:
Made the letters appear closer together. However, using stroke is making the black letters "shrink" in size so think a different solution is required. Thoughts?
With regard to that final image and the black letters appearing smaller. When applying the stroke, tick to indicate that it should be outside and not center or inside
And with helping to ensure that the white parts do meet.... Hmm... Well. Difficult to do the horiztonal stroke without it also applying vertically.
I would agree with others that Illustrator would be better but in Photoshop I might try to duplicate the text, make it all white, put it on the layer behind your main text and manually create a horizontal white pattern.
^ I really hope somebody has a better idea for that last bit though.
Alan,
I would like to help you with this issue. First of all your reference design is designed in adobe illustrator not in photoshop because there is some limitation in photoshop for the stroke feature.
So I would like to suggest you design it in adobe illustrator and not waste your valuable time in photoshop for your desired output.
If you need more help regarding it feel free to contact me at niravmistrydata#gmail.com.
Thank you,
Nirav Mistry

Is it possible to adjust the height of ApplicationBarMenuItem in Windows Phone 8

I have searched for quite a while to find the answer.
Unfortunately, there is not even single one answer can be found on the Internet.
I only have one ApplicationBarMenuItem inside the ApplicationBar which is "About". And after I saw the effect of the "opened" ApplicationBar, I think it is too "fat" (the height of the item is too much, or maybe the line spacing/margin-top and margin-bottom/padding-top and padding-bottom etc...I'm trying to create an image for you, because I don't know how to get a screen shot for that, but anyway I'm sure you know what I mean :))
So here again is the question, is it possible to change the height of ApplicationBarMenuItem in Windows Phone 8?
Many thanks.
No, you can't change the AppBar menu item height.
But... i think this is the way the appbar looks in any system application you can take a look at, and the user isn't going to be dissapointed by the size, is just the expected size. Only my two cents, but i don't think you need to worry about that.

Xcode trouble with constraints for buttons

I am creating a painting/drawing app. I am trying to make everything fit in the view on a 3.5 inch device (so far I have created it to fit a 4 inch device). I have 35 buttons in one of my views for the user to choose the stroke color and size. I understand that the buttons will need to be resized. What is the best way to do this? Everything in the view was inserted through the interface builder. This is what I am working with (the whitespace at the top is an iAd banner):
https://drive.google.com/#folders/0BxjZ6v5AeGPpVktWNmQ5ZmZjQ28
I have been playing about with constraints for some time now but I cannot manage to get the buttons to resize. I feel I may have been close at some points but never completely successful. I was hoping for some help from someone who understands them a little better! So to clarify, I am simply trying to get everything to fit on the screen when the user is on a 3.5 inch device.
Thanks in advance!
I used Autoresizing and it worked well. You need to play around with them a bit. If you explain what exactly your buttons are doing, maybe you will get clearer answers.

Moving background gradient

I have been searching all over the web and even trying to use the code of http://adcyoungguns.org/ but doesn't work at all.
I just want to reply back the moving gradient effect on my div, but to be honest i don't know how to do that in any case.
Do someone ever tried something similar or can just show me an example please?
Gazillion of thanks
I've never done this before, but I think I can point you towards the right direction.
It's most likely either a CSS transition or JQuery animation. If it's a CSS transition, you're in luck, because those are pretty friendly to work with.
On that note, it seems someone has asked a similar question here:
Transition of background-color

iPad not all screen recognising touches

So my current app project is a camera based app and all is going well so far but I have run in to a weird little issue and don't know if there's something basic i'm missing or if it's something more complex.
When I run my app on the iPad in landscape mode (right hand home button), the right end of the screen doesn't recognise touch down events, though if an item is spread across the border (half recognising touches, half not) and you press on the good half and drag, it still recognises the touch and also recognises the touch up event when you let go. Through testing, I worked out that it works fine up to pixel 768 so this makes me think that one of the views thinks that the application is still running in portrait. But then when I run it in portrait, the bottom section (same portion) doesn't work either.
I have looked at another couple of posts on SO:
Article 1
Article 2
I have tried the fixes they say, but have had no luck as of yet. It may be something to do with the fact I have various different views created both programatically and in the interface builder and somewhere along the way, something isn't being initialised correctly but I have tried changing them all, I may have missed some though.
If anybody can shed any light on my situation, that would be greatly appreciated.
Thanks,
Matt
I think the problem has something to do with autoresizing mask. Have you set this? Try to set the background color of all views to see where they are.