Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-12-2010, 09:40 AM   #2 (permalink)
Dvdkite
Registered Member
 
Join Date: Sep 2009
Posts: 96
Default

Hi guys,

The way of mistery is open...

I've processed the UIImage taken from the picker with this method BEFORE apply the GreyScale (above):

Code:
- (UIImage*)resizeImage:(UIImage*)image 
{	
	CGSize size = image.size; 
	UIGraphicsBeginImageContext( size );
	[image drawInRect:CGRectMake(0,0,size.width ,size.height )];
	UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
	UIGraphicsEndImageContext();
	
	return newImage;
}
:

As you can see there's no resize...scale factor is one...

Now all works and it's perfect...
maybe this code will be useful for someone with the same problem...

I would like to know why I should do this trick to make it work correctly?
Why I must scale an UIImage obtined from the picker controller in order to have the CORRECT alignment and proportion????

any guru could explane this?

Thank you!!
Dvdkite is offline   Reply With Quote
 

» Advertisements
» Online Users: 356
21 members and 335 guests
ADY, chemistry, Duncan C, fkmtc, HemiMG, her-ur, iDifferent, leahov, MarkC, marto1914, Meoz, padsoftware, Promo Dispenser, Raffaello, sneaky, sojourner, syver, tathaastu, tgjorgoski, Thrillhouse1919, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,220
Posts: 380,716
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:44 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.