• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is NSScaleProportionally buggy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is NSScaleProportionally buggy?


  • Subject: Re: Is NSScaleProportionally buggy?
  • From: Serge Meynard <email@hidden>
  • Date: Wed, 06 Apr 2005 12:35:25 -0400

On Apr 5, 2005, at 17:20, Brian O'Brien wrote:
I 'think' I've run across a bug in NSImageView.

When my NSImageView window is resized the image I'm displaying in this window resizes correctly as long as I'm
making the image smaller than the actual image. If I make the window larger than the actual image the image will
not get any larger. ie decimation works but interpolation doesn't.
Is it because I've forgotten or am unaware of a method that needs to be called so interpolation works?

Hate to say it but this, but is a bug that should have been fixed a long time ago?

Code fragment:


windowedImage = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:planes

pixelsWide:width

pixelsHigh:height

bitsPerSample:8

samplesPerPixel:3

hasAlpha:NO

isPlanar:NO

colorSpaceName:NSCalibratedRGBColorSpace

bytesPerRow:bytesPerRow

bitsPerPixel:24];
NSImage *img = [[NSImage alloc] init];
[img addRepresentation:windowedImage];
[self setImage:img];
[img release];
[super setImageAlignment:NSImageAlignBottomLeft]; //NSImageAlignCenter;
[super setImageScaling:NSScaleProportionally]; //NSScaleNone or NSScaleToFit or NSScaleProportionally
[super setImageFrameStyle:NSImageFramePhoto];


<http://www.cocoabuilder.com/archive/message/cocoa/2005/2/8/127770>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Is NSScaleProportionally buggy? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Enable Guard Malloc (was Re: Isolating a bug?)
  • Next by Date: Re: ADC Core Data article
  • Previous by thread: Is NSScaleProportionally buggy?
  • Next by thread: Is NSScaleProportionally buggy?
  • Index(es):
    • Date
    • Thread