ios-unity/Classes_cocos/LBXNative/LBXScanViewStyle.m
2022-11-25 15:08:47 +08:00

53 lines
1.2 KiB
Objective-C

//
// LBXScanViewStyle.m
//
//
// Created by lbxia on 15/11/15.
// Copyright © 2015年 lbxia. All rights reserved.
//
#import "LBXScanViewStyle.h"
@implementation LBXScanViewStyle
- (id)init
{
if (self = [super init])
{
_isNeedShowRetangle = YES;
_whRatio = 1.0;
_colorRetangleLine = [UIColor whiteColor];
_centerUpOffset = 44;
_xScanRetangleOffset = 60;
_anmiationStyle = LBXScanViewAnimationStyle_LineMove;
_photoframeAngleStyle = LBXScanViewPhotoframeAngleStyle_Outer;
_colorAngle = [UIColor colorWithRed:0. green:167./255. blue:231./255. alpha:1.0];
_notRecoginitonArea = [UIColor colorWithRed:0. green:.0 blue:.0 alpha:.5];
_photoframeAngleW = 24;
_photoframeAngleH = 24;
_photoframeLineW = 7;
}
return self;
}
+ (NSString*)imagePathWithName:(NSString*)name
{
NSString *bundlePath = [[NSBundle bundleForClass:self.class] pathForResource:@"CodeScan" ofType:@"bundle"];
NSString* path = [NSString stringWithFormat:@"%@/%@",bundlePath, name];
return path;
}
@end