CB-7937 - Re-factor iOS Camera plugin so that it is testable (closes #52)

Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
Shazron Abdullah
2014-11-05 12:19:42 -08:00
parent 3ab650bdc9
commit 35c653d24d
5 changed files with 597 additions and 466 deletions
+28
View File
@@ -0,0 +1,28 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
#import <UIKit/UIKit.h>
@interface UIImage (CropScaleOrientation)
- (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize;
- (UIImage*)imageCorrectedForCaptureOrientation;
- (UIImage*)imageByScalingNotCroppingForSize:(CGSize)targetSize;
@end