Top "Core-graphics" questions

Core Graphics is Apple's framework for low-level drawing operations on Mac OS X and iOS.

iOS invert mask in drawRect

With the code below, I am successfully masking part of my drawing, but it's the inverse of what I want …

ios uiview core-graphics drawrect masking
Drawing triangle/arrow on a line with CGContext

I am using the framework of route-me for working with locations. In this code the path between two markers(points) …

iphone core-graphics quartz-2d cgcontext
How to fill a bezier path with gradient color

I have a UIBezierPath inside my custom UIView draw(_ rect: CGRect) function. I would like to fill the path with …

ios uiview swift3 core-graphics draw
How to create a CGBitmapContext which works for Retina display and not wasting space for regular display?

Is it true that if it is in UIKit, including drawRect, the HD aspect of Retina display is automatically handled? …

ios core-graphics retina-display cgbitmapcontextcreate
Draw Rectangle/ Circle and Triangle in Spritekit with Two Colors. . .

I can draw Rectangle using simple SKSpriteNode. But i can not draw other types of drawings in it like Triangle, …

core-graphics ios7 sprite cgpath sprite-kit
iOS: a Complete 360 Degree-Rotation Using Block, Not CABasicAnimation

It should be something really simple, but I have not been successful in getting this to work using blocks. There …

ios core-graphics uiviewanimation cabasicanimation
CoreGraphics for retina display

I am using the following code to perform some manipulations on the image that I loaded, but I find that …

iphone core-graphics retina-display cg
Drawing Text with Core Graphics

I need to draw centered text to a CGContext. I started with a Cocoa approach. I created a NSCell with …

cocoa core-graphics core-text
Transparent (alpha) gradient with Core Graphic iPhone

anyone knows how to programmatically create a transparent gradient (alpha gradient), over an image with Core Graphic? I need it …

ios core-graphics gradient alpha
UIPopoverController without arrows?

I would like to know to make an UIPopoverController without arrows In fact I would like to simulate something like …

iphone cocoa-touch uikit core-graphics uipopovercontroller