cgcolorspace Questions
2
Core Image lets us specify a color space for a CIContext, as in:
let context = CIContext(options: [kCIContextOutputColorSpace: NSNull(),
kCIContextWorkingColorSpace: NSNull()])
Or for a CIImage...
Screw asked 29/10, 2017 at 9:58
2
Solved
I'm wondering if there's an easy way to get the colorspace of an image (i.e. an image loaded into a UIImage)? For example, I have a TIFF image and I'd like to be able to determine if it uses the RG...
Audiometer asked 12/11, 2010 at 20:55
6
Solved
I have a UILabel with black color;
i am writing the following code to get black color's components.
UIColor *aColor = [aLabel.textColor retain];
const CGFloat* components = CGColorGetComponents(a...
Shinar asked 11/11, 2010 at 14:51
5
Solved
Is there a Cocoa Touch way to convert colors from one color space to another?
At the end of this code:
UIColor *grey = [UIColor colorWithWhite: 0.5 alpha: 1.0];
CGColorRef greyRef = [grey CGColor...
Ratsbane asked 8/7, 2009 at 17:50
1
Solved
I set the color for UIButton with the XCode visual editor. I set it using RGB sliders.
Then I set variable green:
let green = UIColor(red: 0, green: 210/255, blue: 0, alpha: 1)
When I printed o...
Livia asked 22/11, 2017 at 20:47
3
Solved
There are several questions out there that ask about converting colors between colorspaces on Apple platforms. Unfortunately, the answers quite often involve NSColor or UIColor -- non portable Obje...
Darondarooge asked 21/8, 2012 at 9:53
5
Solved
I'm scaling a CGImageRef. I found various code examples on the web that begin like so:
CGColorSpaceRef colorspace = CGImageGetColorSpace(image); // "Get" color space
CGContextRef context = CGBitm...
Bookmobile asked 11/3, 2011 at 6:43
5
Solved
I my application I pass RGB color value to server. My app uses UIColor predefined values, like [UIColor grayColor], [UIColor redColor]. I know that I can use following code:
const CGFloat *c = CGC...
Slat asked 15/1, 2011 at 14:44
3
Solved
The problem is described in the subj.;
Here's my code below:
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
NSArray *colors = [NSArray arrayWithObjects:[UIColor redColor], [UIColor b...
Bollen asked 27/11, 2010 at 17:0
1
© 2022 - 2024 — McMap. All rights reserved.