我有一个白色闪光灯,它似乎在提醒用户拍摄了一张照片,但白色闪光灯并没有为我的照片增添光彩。无论我做了什么,我的照片仍然很暗。我已经改变了闪光的持续时间并在闪光
[[self captureManager] captureStillImage];
后开始拍照,但仍然没有运气。我查看了我的照相亭应用程序,Macbook
似乎闪光灯在拍摄图像之前就出现了一点点,它为黑暗中的照片提供了光线。我想复制这个。谁能帮我?
- (IBAction)captureStillImage2:(id)sender
{
// Capture a still image
[[self stillButton] setEnabled:NO];
// Flash the screen white and fade it out to give UI feedback that a still image was taken
UIView *flashView = [[UIView alloc] initWithFrame:[[self videoPreviewView] frame]];
[flashView setBackgroundColor:[UIColor whiteColor]];
[[[self view] window] addSubview:flashView];
[UIView animateWithDuration:1.0f
animations:^{
[[self captureManager] captureStillImage];
[flashView setAlpha:0.f];
}
completion:^(BOOL finished){
[flashView removeFromSuperview];
[flashView release];
}
];
}