nsbitmapimagerep
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 分类:问答Creating an OpenGL texture with alpha using NSBitmapImageRep
I am loading a PNG using: theImage = [NSBitmapImageRep imageRepWithContentsOfFile:imagePath]; from which I can successfully create a gl texture and render correctly without any transparency. Howeve[详细]
2023-03-24 16:41 分类:问答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 分类:问答Getting into pixel data of NSImage
I\'m writing application that operates on black&white images. I\'m doing it by passing a NSImage object into my method and then making NSBitmapImageRep from NSImage. All works but quite slow. Here[详细]
2023-01-08 05:44 分类:问答Saving NSBitmapImageRep as NSBMPFileType file. Wrong BMP headers and bitmap content
I save a NSBitmapImageRep to a BMP file (Snow Leopard). It seems ok when i open it on macos. But it makes an error on my multimedia device (which can show any BMP file from internet).I cannot figure o[详细]
2022-12-28 05:25 分类:问答How to compress jpeg image with Cocoa?
I have an jpeg image and I want to be able to incrementally compress it using Cocoa/Core Image/Core Graphics.For example, I have A.jpg (3MB), I compress A and get B.jpg (1MB), compress B and get C.jpg[详细]
2022-12-12 06:18 分类:问答Why is bitmapImageRepForCachingDisplayInRect: creating an empty image?
I have a very simple bit of code that is supposed to capture the bitmap of a view.This used to work in Leopard, but seems horribly broken in Snow Leopard.[详细]
2022-12-08 20:50 分类:问答