正规365体育投注

Questions tagged [core-graphics]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

NSAnimationContext crashing when called by an Observer

I have two WebViews: webView and customizerWebView. Both of these WKWebViews are attached by a trailing constraint. Essentially, when I go to the menu and click "Show Customizer" showCustomizer() or "...
0
votes
0answers
7 views

iOS Core Graphics how to optimize incremental drawing of very large image?

I have an app written with RXSwift which processes 500+ days of HealthKit data to draw a chart for the user. The chart image is drawn incrementally using the code below. Starting with a black screen,...
1
vote
1answer
44 views

Quartz 2D implementing html5 canvas globalCompositeOperation

I am trying to implement html5 canvas globalCompositeOperation using CGContextSetBlendMode and translating the html5 canvas operators (source-in, source-atop, etc.) to its CGBlendMode counterparts (...
0
votes
1answer
25 views

Getting a full screenshot of a UIScrollView in iOS 13

I am using Swift 5 and iOS 13. I am trying to take a screenshot of the entire scrollview image and print it, but the bottom appears in white. How can i solve this problem? I showed and explained ...
3
votes
1answer
46 views

Shadows masks to bounds only on the left and upper side. What causes this?

I'm trying to achieve a feature that allows adding a shadow to a transparent button. For this, I'm creating a layer that masks the shadows inside the view. However, my shadows are clipped on the left ...
0
votes
0answers
21 views

How to find where to draw text inside an irregular shape represented by a UIBezierPath?

In my app, I have a bunch of UIBezierPaths that I import from SVG files using this thing, which all represent irregular shapes. I want to draw texts inside the shapes so as to "label" those shapes. ...
0
votes
0answers
19 views

Convert Images to video for with different duration for individual Image

I am able to convert to video with images. I want to add different duration for each image so I am using insert time, adding previous time but getting 1st Image frame duration correct but for other ...
0
votes
0answers
13 views

In Quartz (CG), what is the relation between a “masked image” (from CGImageCreateWithMask) and an image with an alpha channel?

Is it for instance so that the masked image concept is older, from times what it was uncommon or unsupported to have an alpha channel inside the image data? Is it possibly or perhaps even likely that ...
0
votes
1answer
20 views

Draw a border around an oval CAShapeLayer on MacOS

I need to display an oval layer with a predefined fillColor and a 1px borderColor. Here is code: CGRect r = CGRectMake(28, self.bounds.size.height - 5 - 12, 12.0, 12.0); NSBezierPath *path = [...
2
votes
0answers
32 views

How to draw with CGContext outside drawRect method and flush draw commands to screen

I'm creating a game like application with glfw, i currently use opengl+CGBitmapContext, it works well when i call glSwapBuffers. I want to drop opengl from code, then glfw only be used for window ...
0
votes
1answer
72 views

Swift Add square dashes to Circle

I have a custom view class which draws a circle as it is seen below: import UIKit @IBDesignable class RotaryCircleSlider:UIView { @IBInspectable var mainColor: UIColor = UIColor.blue { ...
2
votes
1answer
46 views

Drawing pixelated lines

I am attempting to draw "pixelated" or "vectorized" lines that look like this style: Ideally I am trying to draw a path via something like CAShapeLayer and have the path be pixelated to this style. ...
0
votes
1answer
37 views

iOS Radar Chart with 3D Effect

I would like to replicate this graph in my app. I tried to search online but I found only pods, specifically Charts. I tried to customize it but I was unable to give it the 3d effect by assigning ...
1
vote
2answers
41 views

UIBezierPath not equally fat everywhere and cut off

I am trying to draw a line with a smooth quadratic curve attached to its end. Therefore, I am using this code: import Foundation import UIKit class IndicatingView: UIView { var path: ...
0
votes
0answers
18 views

Drawing Shape layer using Coregraphics - iOS

I am trying to achieve following shape using coregraphics. I am able to create a rounded rect func createRoundedRect() { let path = UIBezierPath(roundedRect: self.bounds, cornerRadius: 15....

15 30 50 per page
1
2 3 4 5
383