IKImageView crop/rotate issues
IKImageView crop/rotate issues
- Subject: IKImageView crop/rotate issues
- From: "Janusz Sidor" <email@hidden>
- Date: Sat, 05 Jul 2008 18:50:03 +0200
- Organization: Nowa Poczta Wirtualnej Polski S.A. http://www.wp.pl/
Hi,
I've been trying to use IKImageView, but have some issues:
1. After using rotate, image knows about changes but is still the same
size as loaded, imageSize shows new size after rotate but not image
itself. How can i take this picture with new size? There is nothing in
documentation about that. Maybe it is also putted in pasteboard?
2. I'm not sure which pasteboard I should use to implement paste
functionality to get picture after crop.
I've written as beneath to save changes but bestType returns empty. What
mistake am I doing?
NSPasteboard *pb = [NSPasteboard generalPasteboard];
NSArray *pasteTypes = [NSArray arrayWithObjects:
NSTIFFPboardType, NSPICTPboardType, nil];
NSString *bestType = [pb availableTypeFromArray:pasteTypes];
if (bestType != nil)
{
NSData *data = [pb dataForType:bestType];
}
I'm deeply sorry if that is trivial, but realy I don't know how to solve
it.
Kindly regards
----------------------------------------------------
Która z gwiazd ma fajniejszy dekolt? Kto powinien zrezygnować z
mini? Oglądaj, oceniaj, baw się!
Wejdź na http://klik.wp.pl/?adr=http://hityczykity.pl&sid=403
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden