nsimage
Hide child controls in an NSView
I have an NSView with multiple child controls in it. I know I can call [childControl setHidden:TRUE] but I was wondering if its possible to block the message \"drawRect:\" for the child controls.[详细]
2023-02-12 05:53 分类:问答Memory Continues to Increase when Loading and Releasing NSImage
I have a problem where my application aggressively consumes memory to a \"thrashing point\" with successive image file loads.For example, consider the following code, which repeatedly loads and releas[详细]
2023-02-11 04:34 分类:问答How to load OpenGL texture from ARGB NSImage without swizzling?
I\'m writing an app for Mac OS >= 10.6 that creates OpenGL textures from images loaded from disk. First, I load the image into an NSImage. Then I get the NSBitmapImageRep from the image and load the[详细]
2023-02-09 14:18 分类:问答Create and write paletted RGBA PNG using NSImage
I\'m trying to create paletted PNG image (8-bit per pixel) that uses RGBA palette (32-bit per palette entry) using Cocoa framework*.[详细]
2023-02-09 10:28 分类:问答Drawing transparent NSImage makes all NSViews transparent
I have three NSViews in a Cocoa application, each subviews of the other. FirstNSView -> SecondNSView -> ThirdNSView[详细]
2023-02-07 11:32 分类:问答NSImage Overlay/Mask Gradient like iOS
I\'m looking to replicate with Cocoa/Core Graphics the process which seems to occur on iOS when setting an image for aUITabBarItem. When the tab bar item is selected, the image is overlayed with a gra[详细]
2023-02-07 06:34 分类:问答how to place some label on some window?
I need to mark some opened win开发者_如何转开发dow from my application. I can get the windows list, their system id, name, owner... Can I draw some NSImage only on choosen window?If you have a window,[详细]
2023-02-05 23:22 分类:问答NSImage DPI Question
Can anyone tell me how I can get the true width and height of an NSImage? I have noticed that images that are a higher DPI than 72 come through with inaccurate width and height with the NSImage.size p[详细]
2023-02-05 13:18 分类:问答NSImage loading a portion of image
The requirement is like this, I would get a single large PNG Images for a button, this single image will contain images for hOver, button clicked , mouse exit that need to be displayed,[详细]
2023-02-03 19:06 分类:问答how to code NSButton to look just like image
Using code (not the Interface builder) I need to create an NSButton that looks like an image. Specifically I开发者_Python百科 want to use NSImageNameStopProgressFreestandingTemplate and I need it not[详细]
2023-02-01 19:29 分类:问答