NSView adjustScale: View is scaled but the image remains the same.
NSView adjustScale: View is scaled but the image remains the same.
- Subject: NSView adjustScale: View is scaled but the image remains the same.
- From: "Frederick C. Lee" <email@hidden>
- Date: Thu, 30 Mar 2006 11:52:13 -0800
Greetings:
I want to adjust the scale of a customized NSView.
- (IBAction)scaleImage:(id)sender {
float sizeFactor = [sender floatValue];
[ewMainImageView setScale:sizeFactor];
[ewMainSliderValue setFloatValue:sizeFactor];
} // end scaleImage().
This would work for the NSImageView but all I'm getting here, is the
actual scaling of the NSView but NOT the image within the View.
The image was drawn via the
[[self image] compositeToPoint:([self bounds].origin)
operation:NSCompositeSourceOver];
Question: How do I scale the actual image within NSView?
Regards,
Ric.
_______________________________________________
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