nsimage
How to composite several NSImages into one big image?
I have a collection of objects which describe an image-name, its size and it\'s X/Y location.The collection is sorted by \"layers\", so I can composite the images in a sort of painter\'s algorithm.[详细]
2022-12-21 17:45 分类:问答Error saving NSImage as NSData
I am using the following code to save a frame of a movie to my desktop: NSCIImageRep *imageRep = [NSCIImageRep imageRepWithCIImage:[CIImage imageWithCVImageBuffer:imageBuffer]];[详细]
2022-12-21 03:22 分类:问答Calculate position of NSScrollView relative to main image
Assume I load an NSImage of dimensions 2000x2000 and display only a portion of the picture inside an NSScrollView with frame size 500x300. How can I calculate the distance between the images 0,0 origi[详细]
2022-12-20 18:03 分类:问答NSImage Crop Crashing
When I try to crop an image using NSIma开发者_如何学Goge\'s imageFromRect, I get an EXEC_BAD_ACCESS crash about 50% of the time. This is something that runs on startup (triggered in an awakeFromNib),[详细]
2022-12-20 14:04 分类:问答How can I round a number in JavaScript? .toFixed() returns a string?
Am I missing something here? var someNumber = 123.456; someNumber = someNumber.toFixed(2); alert(typeof(someNumber));[详细]
2022-12-20 06:29 分类:问答How to overlap (superimpose) an image over a file icon using Cocoa?
I have to make a prototype application where I superimpose a small image over the file icons of a given folder.[详细]
2022-12-20 05:43 分类:问答NSImage acting weird
Why is this code setting artis开发者_Go百科tImage to an image with 0 width and 0 height? NSURL *artistImageURL = [NSURL URLWithString:@\"http://userserve-ak.last.fm/serve/252/8581581.jpg\"];[详细]
2022-12-19 04:14 分类:问答Creating an image badge with Cocoa/OSX
I need to create an image badge in Cocoa.Basically I need to take two images one smaller then the other and ov开发者_如何转开发erlay the smaller image over the larger image with a certain offset.Does[详细]
2022-12-19 01:50 分类:问答Replacing one colour with another in an NSImage
I have an NSImage and want to replace one color in it with another (e.g. replace all the blue with a green colour开发者_开发百科)Is there an easy way to do this and if not, how could I get this functi[详细]
2022-12-17 15:30 分类:问答NSImage readFromData problem
I am trying to make a simple document-based cocoa application that can save and load images in pdf files.[详细]
2022-12-15 07:29 分类:问答