Questions tagged [quartz-graphics]

Quartz is graphic framework used on Mac OS X. It forms a graphic layer. Term Quartz is used to represent Quartz 2D and Quartz Compositor. Quartz graphic is a 2D renderer in Core Graphics.

1214 questions
0
votes
2 answers

Find a point between two point

I two concentric circles on the screen and I want the circle on the inside to move around while the user drags their finger around the outside of the larger circle. This means that I have two point, center of the larger circle and the point at which…
Mike
  • 42
  • 6
0
votes
0 answers

How can I make crisper images using quartz?

I'm trying to make high-resolution graphics dynamically. Unfortunately when I make arcs they look really fuzzy. Here's my code - (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef context = UIGraphicsGetCurrentContext(); …
Legen Diary
  • 365
  • 3
  • 17
0
votes
2 answers

Overlaid images

I'm creating an application where I will be drawing two circles onto the screen, one large circle with a smaller circle inside. I want the user to be able to touch/drag on the screen inside or outside of the large circle and it will move the smaller…
Mike
  • 42
  • 6
0
votes
1 answer

Get union of the frames of several transformed UIImageViews?

I've got a collection of roughly 10 overlapping UIImageViews. Each one is rectangular but each is rotated and scaled separately. Are there any Core Graphics tricks for drawing a path around the perimeter of ALL the images? CGRectUnion may give me a…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
1 answer

How can I generate a pdf in iOS that contains embedded hocr data?

I used the ocr client tesseract to generate ocr text and location data in an hocr file. I'd like top create a pdf from the images with an invisible layer of text from tesseract embeedded within it. I can't figure out how to do this. Generating a pdf…
M.R.
  • 1,053
  • 2
  • 13
  • 30
0
votes
0 answers

System zoom with screen capture

We are developing screen capture utility which allows users to capture selected area on screen. Which works on 10.7 and above. As per apple Technical Q&A QA1741 we have used below API to capture…
SPrabhu
  • 303
  • 1
  • 4
  • 9
0
votes
1 answer

Changing coordinates of CoreGraphics to top left causes ShowText to render upside down

I have configured a CGContextPDF so the (0,0) coordinates are at the top left and not the bottom left using the following: context.TranslateCTM(0, height); context.ScaleCTM(1, -1); However, now whenever I call ShowText the text is rendered upside…
James
  • 80,725
  • 18
  • 167
  • 237
0
votes
1 answer

My CGFrame does not display

I'm trying to build an example of using CGFrame using the code below - (void)viewDidLoad { [super viewDidLoad]; CGRect newFrame = [note_view frame]; if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication]…
user616076
  • 3,907
  • 8
  • 38
  • 64
0
votes
2 answers

Moving a UIView along a CGPath according to touch position

I have a line graph I've drawn in Quartz, and a UIView 'bubble' that I'd like to ideally pop up when the user touches the single plot line, and moves their finger along it. The bubble displays some extra graph information. I'd like to 'attach' the…
lxt
  • 31,146
  • 5
  • 78
  • 83
0
votes
2 answers

How to Fill a path with a pattern in Quartz

I have created a view and in my draw rect method I create paths depending on what a user does with sliders. Using standard colors , everything works and looks very nice. I am trying to follow a code snippet from apple that shows how to draw patterns…
Miek
  • 1,127
  • 4
  • 20
  • 35
0
votes
1 answer

iphone sdk: I have a Quartz Drawing problem

I have a view (MKMapView) and on it I've a transparent view on which I draw different things. Now I would like to give the user the option to erase things so that the "background view" (the mapView) will be seen in the erased places. Do you think…
Alex1987
  • 9,397
  • 14
  • 70
  • 92
0
votes
1 answer

iphone: Drawing over MKMapView?

I'm attempting to draw polygons on a mapView. What I did was to add a transparent view on the main view, that matches the bounds of the mapView, and I draw over it. When I move the table it's ok, but when I zoom in and out the polygones 'bounce' on…
Alex1987
  • 9,397
  • 14
  • 70
  • 92
0
votes
1 answer

Move UIView left to right while they move down the screen

I am trying to create an iOS app with blocks floating down the screen(UIViews). I have them floating down the screen but I also want the user to be able to move them on the x axis as they are falling. I tried to do it with the code below but they…
BDGapps
  • 3,318
  • 10
  • 56
  • 75
0
votes
2 answers

iphone sdk: Creating an image of the contents of the screen?

I'm looking for a way to write the contents of the screen to an image. Any idea how to achieve that? Does it involve using Quartz? Thanks
Alex1987
  • 9,397
  • 14
  • 70
  • 92
0
votes
2 answers

iPhone display: Are image assets sharper then custom drawing?

The title mostly says it all; I've got some mockups i am looking at, and as I try to implement them, It seems as though the custom drawing, even with a linewidth of 0.5, is not quite as sharp as the mockup appears when i preview it on my device. Can…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90