nsbitmapimagerep Questions
6
Solved
I'm doing some operations on images, and after I'm done, I want to save the image as PNG on the disk. I'm doing the following:
+ (void)saveImage:(NSImage *)image atPath:(NSString *)path {
[image...
Coburn asked 6/7, 2013 at 21:8
1
Solved
I have a generative art application which starts with a small set of points, grows them outwards, and checks the growth to make sure it doesn't intersect with anything. My first naive implementatio...
Hydrostatic asked 6/10, 2018 at 4:18
2
Solved
I have an NSImage. I would like to read the NSColor for a pixel at some x and y. Xcode seems to thing that there is a colorAtX:y: method on NSImage, but this causes a crash saying that there is no ...
Mungovan asked 15/3, 2012 at 18:36
3
Solved
How to convert NSImage to NSBitmapImageRep? I have code:
- (NSBitmapImageRep *)bitmapImageRepresentation
{
NSBitmapImageRep *ret = (NSBitmapImageRep *)[self representations];
if(![ret isKindOfC...
Darrickdarrill asked 15/10, 2012 at 13:38
3
I had created 32 bit NSImage with following code.
NSBitmapImageRep *sourceRep = [[NSBitmapImageRep alloc] initWithData: imageData];
// create a new bitmap representation scaled down
NSBitmapI...
Commentary asked 2/8, 2013 at 11:32
1
Solved
I have a CALayer (containerLayer) that I'm looking to convert to a NSBitmapImageRep before saving the data out as a flat file. containerLayer has its geometryFlipped property set to YES, and this s...
Neoclassicism asked 21/10, 2011 at 22:54
5
Solved
I have a 32-bit NSBitmapImageRep which has an alpha channel with essentially 1-bit values (the pixels are either on or off).
I want to save this bitmap to an 8-bit PNG file with transparency. If I...
Hoofbound asked 3/3, 2010 at 4:11
1
© 2022 - 2024 — McMap. All rights reserved.