Re: Help with pixellated NSTIFFRepresentation issues much appreciated
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