Getting image size when image zoomed by user?

Up vote 0 down vote favorite share g+ share fb share tw.

How can I get the image size when it's zoomed by user, I write these on my project : - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return imageView; } -(void) didLoad{ UIImageView *tempImageView = UIImageView alloc initWithImage:UIImage imageNamed:@"image. Jpg"; self. ImageView = tempImageView; tempImageView release; scrollMapView.

ContentSize = CGSizeMake(imageView.frame.size. Width, imageView.frame.size. Height); scrollMapView.

MaximumZoomScale = 4.0; scrollMapView. MinimumZoomScale = 0.75; scrollMapView. ClipsToBounds = YES; scrollMapView.

Delegate = self; scrollMapView addSubview:imageView; } I just want to know the image size when it zoomed.. thank you. Iphone cocoa-touch uiscrollview uiimageview link|improve this question edited Aug 17 '10 at 6:59Peter Hosey53.5k445137 asked Aug 16 '10 at 4:43Imam Arief W86110 92% accept rate.

– Vegar Aug 17 '10 at 7:04 yeah, something like that.. btw i've got it.. thnx bro.. :) – Imam Arief W Jun 20 '11 at 3:15.

Maybe you can do just: newZoomedWidth = scrollView. ZoomScale * imageView.frame.size.width.

I could be wrong about this (I'm not an iPhone developer), but I don't think the image itself gets zoomed; it's only the scroll view's display of the image view that gets zoomed. So, it's only a property of the scroll view that changes; the image remains unchanged. That means you should be able to just get the image view's image and ask that for its size.

If you want the image's zoomed size rather than its original size, get its original size and multiply both dimensions by the scroll view's zoom scale.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions