File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ - (void)scale:(FIScaleOption *)option {
248
248
return ;
249
249
}
250
250
251
- UIGraphicsBeginImageContext (outImage. size );
251
+ UIGraphicsBeginImageContext (CGSizeMake (option. width , option. height ) );
252
252
253
253
CGContextRef ctx = UIGraphicsGetCurrentContext ();
254
254
if (!ctx) {
@@ -292,14 +292,14 @@ - (void)addText:(FIAddTextOption *)option {
292
292
UIColor *color = [UIColor colorWithRed: (text.r / 255.0 ) green: (text.g / 255.0 ) blue: (text.b / 255.0 ) alpha: (text.a / 255.0 )];
293
293
294
294
UIFont *font;
295
-
295
+
296
296
if ([@" " isEqualToString: text.fontName ]){
297
297
font = [UIFont systemFontOfSize: text.fontSizePx];
298
298
}else {
299
299
font = [UIFont fontWithName: text.fontName size: text.fontSizePx];
300
300
}
301
301
302
-
302
+
303
303
NSDictionary *attr = @{
304
304
NSFontAttributeName : font,
305
305
NSForegroundColorAttributeName : color,
You can’t perform that action at this time.
0 commit comments