Skip navigation.
 
mlRe: Is NSScaleProportionally buggy?
FROM : Stephane Sudre
DATE : Wed Apr 06 18:39:08 2005

I tend to believe that if you were filing a bug report on this one, you
would get the following answer:

"Thank you for taking the time to bring this issue to our attention.
Engineering has reviewed your report and has determined that this is
behavior intended by design and is working correctly per engineering
specifications."

On 6 avr. 05, at 18:04, 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];

Related mailsAuthorDate
mlIs NSScaleProportionally buggy? Brian O'Brien Apr 5, 23:20
mlIs NSScaleProportionally buggy? Brian O'Brien Apr 6, 18:04
mlRe: Is NSScaleProportionally buggy? Serge Meynard Apr 6, 18:35
mlRe: Is NSScaleProportionally buggy? Stephane Sudre Apr 6, 18:39