Questions tagged [nsimage]

on Mac OS X, an NSImage object is a high-level class for manipulating image data

681 questions
-1
votes
1 answer

How to programatically create transparent NSImage?

Very simple: How to programatically create transparent NSImage? Unless it is not so simple... Previous OSX versions gave NSImage transparent background by default when calling let image = NSImage(size: size) but now it has black background. How do…
Rasto
  • 17,204
  • 47
  • 154
  • 245
-1
votes
1 answer

How to generate NSImage with specific resolution and specific size in mm

I am new to objective-c and cocoa programming. I am trying to generate image which will be 128mm in height and 128mm in width with 300 DPI resolution. NSString *image = [[NSImage alloc] initWithSize:NSMakeSize(1512, 756)]; In above line of code…
A2212007
  • 11
  • 4
-1
votes
3 answers

Is there any way to Convert NSView Contain Subviews into NSImage?

Is there any way to Convert NSView Contain many Subviews with background color into NSImage ? Sample code will be great NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:[_collageView bounds]]; [_collageView…
-1
votes
1 answer

Blur Partial Part of Image

I am new for iOS Development . After googling I found that, it is easy to blur whole image but it is difficult to blur specific part of image such like rectangular or circular. So please help me how can I blur specific part of image rather then…
user2289379
-2
votes
1 answer

Resizing Large Resolution Images Producing 1000x1000 Pixels Size when Size is set to 500x500 Pixels

Im using the following extension method to resize an image.When it comes to large resolution images the output size remains 1000x1000 pixels even when I set the output size to 500x500 pixels extension NSImage { func resizeImage(width: CGFloat, _…
techno
  • 6,100
  • 16
  • 86
  • 192
-2
votes
2 answers

Should I dealloc NSImage?

I am writing a simple Obj-c app. So far I've never had to alloc anything and I gave for granted that ARC would take care of memory management. But now I have to call: NSImage *myImage = [[NSImage alloc] initByReferencingFile: pathToMyImg]; After…
Maurizio
  • 547
  • 5
  • 13
1 2 3
45
46