• 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: Help with pixellated NSTIFFRepresentation issues much appreciated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with pixellated NSTIFFRepresentation issues much appreciated


  • Subject: Re: Help with pixellated NSTIFFRepresentation issues much appreciated
  • From: Robert Clair <email@hidden>
  • Date: Fri, 8 Oct 2004 10:58:48 -0400

Sorry for my lack of clarity. Basically, if I just use
[self image] to create the TIFFRepresentation, the
results seem random in that - for any image I place
into the image view - when dragged to the text view
the image may be completely unscaled, or it may be
scaled correctly, or it may be scaled but at a
previous scale (eg. not at the original size but not
at the size the image is in the view, either). Very
strange.


Let's try this from the top. I don't know what NSImageView is doing,
I don't use them. But try this first - whenever you create an image -
loading it from the file or from a pasteboard, immediately do:

[whateverImage setScalesWhenResizes: YES];
[whateverImage setDataRetained: YES];

the setDataRetained: YES will keep NSImage from replacing your
NSBitmapImageRep with a lower res NSCachedImageRep

then your original easy

[[self image] TIFFRepresentation];

should work.

......Bob Clair

_______________________________________________
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: Help with pixellated NSTIFFRepresentation issues much appreciated
      • From: Keith Blount <email@hidden>
References: 
 >Re: Help with pixellated NSTIFFRepresentation issues much appreciated (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Equivelent to drawRect: for drawing after sub views are drawn
  • Next by Date: Re: NSMatrix help
  • Previous by thread: Re: Help with pixellated NSTIFFRepresentation issues much appreciated
  • Next by thread: Re: Help with pixellated NSTIFFRepresentation issues much appreciated
  • Index(es):
    • Date
    • Thread