• 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
NSView adjustScale: View is scaled but the image remains the same.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSView adjustScale: View is scaled but the image remains the same.
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Core Data data access
  • Next by Date: Re: Core Data data access
  • Previous by thread: Re: Opening a window in Core Data application
  • Next by thread: Re: NSView adjustScale: View is scaled but the image remains the same.
  • Index(es):
    • Date
    • Thread