nsimage
How does NSImage's data retaining behaviour work?
I have a method that constantly loads new image data from the web. Whenever all data for an image has arrived, it is forwarded to a delegate like this:[详细]
2023-02-22 07:18 分类:问答Need help on data types and class implementation
I need to implement a class which will be used for same image operations. Class should store image data and have methods to do:[详细]
2023-02-19 07:12 分类:问答Cocoa resize NSImage while preserving animation
is there a way to resize a NSImage (animated gif) and preserve the animation? I want to make the animated gif with 512x256px size, fit a rect of 256x256px.[详细]
2023-02-15 20:03 分类:问答iconForFile] returns image with 0 representations
My Cocoa application displays file icons for all files in a given folder. I\'m using this code to get the icon images:[详细]
2023-02-15 17:44 分类:问答Prevent NSButtonCell image from drawing outside of its containing NSScrollView
I have asked (and answered) a very similar question before.That question was able to be solved because I knew the dirtyRect, and thus, knew where I should draw the image. Now, I am seeing the same beh[详细]
2023-02-15 11:30 分类:问答Cocoa working with a texture atlas
I\'m loading a texture atlas into my app using the drawRect of a NSView subview: NSImage *imageFromBundle = [NSImage imageNamed:@\"sheet1.png\"];[详细]
2023-02-14 09:31 分类:问答Cocoa: Passing texture atlas values to a NSView
I\'m passing values to a method in a NSView subclass - I\'m calling it twice but the drawRect method is only showing the last value passed...the values are coordinates on a texture atlas, not sure if[详细]
2023-02-14 03:38 分类:问答Cocoa - Fade between two NSImage's?
I have a menu with an NSImage showing some information, and when it gets updated I would like the new (u开发者_运维知识库pdated) image to fade in. I know it is easy on the iPhone, but is this possible[详细]
2023-02-13 17:13 分类:问答Image inside NSScrollView drawing on top of other views
I have a custom NSView that lives inside of a NSScrollView that is in a NSSplitView. The custom view uses the following drawing code:[详细]
2023-02-13 06:16 分类:问答Extracting bitmap data from an NSImage in python
I\'m constructing wx.MemoryDC using the data from the NSImage, but the resulting code is very sluggish. It seems to me that TIFFRepresentation -> ImageFromStream step is the one that slows things down[详细]
2023-02-12 14:13 分类:问答