nsimage
Trying to turn [NSImage imageNamed:NSImageNameUser] into NSData
If I create an NSImage via something like: NSImage *icon = [NSImage imageNamed:NSImageNameUser]; it only has one representation, a NSCoreUIImageRep which seems to be a private class.[详细]
2023-04-10 17:42 分类:问答Creating images from views, strings, etc
Ok so I have a problem. I have a method that is called imageFromText, it requires one parameter, the string itself, and it returns a NSImage. I also have another one which is called: imageFromView, th[详细]
2023-04-10 03:19 分类:问答Is there a counterpart to NSImageNameFolder for files?
NSImage comes with a number of system images. One of them being NSImageNameFolder for a generic folder icon.[详细]
2023-04-04 02:24 分类:问答How to convert 256 colors palettized RGBA image data to NSImage
I\'m a newbie 开发者_如何学JAVAdeveloper and I need your help with something that is probably trivial for you.[详细]
2023-04-03 00:36 分类:问答Resize CGImageRef without anti-liasing
I am trying to resize a 10x10 pixel CGImageRef, captured like this: CGImageRef imageRef = CGImageCreateWithImageInRect(scree开发者_如何学JAVAnShot, CGRectMake(mouseLoc.x-5, screen_height-mouseLoc.y-5[详细]
2023-03-31 07:29 分类:问答How to draw a NSImage like images in NSButtons (with a deepness)?
Is the开发者_运维知识库re any way to draw an NSImage like images in NSButtons or other cocoa interface elements?[详细]
2023-03-29 09:04 分类:问答How to stop NSImage lockfocus from Leaking Memory in an NSOperation?
I have a problem with NSImages leaking memory when I draw to them with lock/unlockfocus. The leak goes awa开发者_开发技巧y when I comment out the LEAKS HERE code below. So I know that is where the lea[详细]
2023-03-28 16:16 分类:问答NSImage mouse events
I have a number of NSImages that I\'m rendering in a custom NSView subclass. I\'m looking to enlarge theses images as and when the user 开发者_C百科places their mouse over them and am wondering about[详细]
2023-03-27 10:13 分类:问答How to write an OS X application that can effect changes (custom cursor, draw an image) even when it is not active?
I previously asked a question about changing the cursor system-wide on OSX. I used NSCursor to change the cursor, but the effects are only as long as the application is active. When another applicatio[详细]
2023-03-26 18:29 分类:问答Apply a Gamma of 1.8 to an NSImage
I\'m trying to convert an NSImage to have a a gamma of 1.8 and I\'m not having much luck. I\'ve found some code but nothing that\'s working. I开发者_开发知识库\'ve got a method that returns an NSBitma[详细]
2023-03-21 05:56 分类:问答