cgcontextref Questions
2
Solved
Can I draw shapes like circle, rectangle, line etc outside drawRect method using
CGContextRef contextRef = UIGraphicsGetCurrentContext();
or is it mandatory to use it inside drawRect only.
Pleas...
Yuu asked 29/5, 2013 at 11:50
1
I am drawing a line graph by using CGContextRef. Can I zoom in zoom out this graph to show lines clearly.
I am using this code.
CGContextRef context=UIGraphicsGetCurrentContext();
CGContextBeginP...
Flotow asked 15/7, 2015 at 11:0
2
Solved
I've created a context using CGBitmapContextCreate. Do I need to release it using CGContextRelease? I know the answer is yes in Objective-C, but how about in Swift?
Thanks!
Worthless asked 10/1, 2015 at 4:22
4
So, I am taking a screenshot of a subclassed UIView that I save into the device's photo stream.
Problem:
The problem is that I use resizableImageWithCapInsets to add a stretched background to my UI...
Jardena asked 21/3, 2014 at 19:36
2
How can i strore all pixel point in the CGContextAddArc To NSMutableArray.or CGContextRef to NSMutable Array
static inline float radians(double degrees)
{
return degrees * PI / 180;
}
- (void)d...
Sponger asked 12/7, 2012 at 4:48
3
I have issue to implement "Emboss/Shadow effects" in my drawing. Finger paint functionality is currently working fine with my custom UIView and below is my drawRect method code:
Edit code with all...
Termagant asked 22/6, 2012 at 12:10
2
Solved
I have created a custom UIView (without .xib) for a finger paint application.
Paint is working fine with custom UIView but my problem is that when I try to erase the painted path I am getting:
...
Complementary asked 21/6, 2012 at 6:17
1
© 2022 - 2024 — McMap. All rights reserved.