Friday, November 6, 2026
HomeiOS DevelopmentChanging colorspaces in Goal-C

Changing colorspaces in Goal-C

[ad_1]

How can I convert from system color house to calibrated RGB house.Please attempt to add adjustments to the next code:

    NSColor *MyColorAtScreenCoordinate(CGDirectDisplayID displayID, NSInteger x, NSInteger y) {
    CGImageRef picture = CGDisplayCreateImageForRect(displayID, CGRectMake(x, y, 1, 1));
    NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithCGImage:picture];
    CGImageRelease(picture);
    NSColor *colour = [bitmap colorAtX:0 y:0];
    [bitmap release];
    return colour;
}

I received the code from this put up.
I discovered a solution for swift right here ,I’m fairly new to swift and even the docs didnt assist

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments