Image within a custom NSView gets blurrier as I scale
Image within a custom NSView gets blurrier as I scale
- Subject: Image within a custom NSView gets blurrier as I scale
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 10 Apr 2006 15:29:59 -0700
Greetings:
	I have an image within a customized NSView via compositeToPoint
method.  The bitmap image gets blurrier as I scale it.
How can I maintain the original quality/resolution as I scale?
Regards,
Ric.
=============================
//  EWMainImageView.m
...
- (void)drawRect:(NSRect)rect {
    [super drawRect:rect];
    if (nil != [self image]) {
        [[self image] compositeToPoint:([self bounds].origin)
operation:NSCompositeSourceOver];
    }
    [[NSColor redColor] set];
    [bezierPath stroke];
} // end drawRect().
...
- (void)setScale:(float)factor {
    NSSize imageSize = [self origImageSize];
    imageSize.width *= factor;
    imageSize.height *= factor;
    [[self image]setSize:imageSize];
    [self setNeedsDisplay:YES];
}
...
===========================
_______________________________________________
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