uiimageview

Drawing polylines over Image in UIImage View

Hi! I want to draw polylines over and image loaded in an UIImageView. Can someone give me some tips on where to start? Thank you ...

Move image from left to right and right to left in iphone..

- (void)moveImage:(UIImageView *)image duration:(NSTimeInterval)duration curve:(int)curve x:(CGFloat)x y:(CGFloat)y { // Setup the animation [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:duration]; [UIView setAnimationCurve:curve]; [UIView setAnimationBeginsFromCurrentState:YES]; ...

NSTimer gradually slows down

Hi everyone, I'm creating a small stop watch with UIImageViews for the digits.I have 2 views controllers.One is the main view controller and when you press the "Stop Watch" button it loads the 2nd view controller with stop watch.I have created a NSTimer like this.... timerMain = [NSTimer scheduledTimerWithTimeInterval:0.01 target:self ...

Scrolling Image View with time Duration in Android

Hi, I am building an application in which the front page of the app should have a animated imageview. There are about 5-6 images and it should be scrolling either from left to right, the direction doesnt matters but it should scroll anyway. I tried searching from the net but i found only bring the pic set relevant to time and they seem...

clipping to bounds with UIViewContentModeScaleAspectFill

Hi everyone: is there any way of controlling where UIViewContentModeScaleAspectFill clips an image? In my case, images are always clipped around the center of the image. Is it possible to make it clip around the top? Thanks! Antonio ...

Zoom issue with UIImageView

I am trying to get pinch/zoom work but to no luck... please check code attached any help is appreciated. #import "SlideShowViewController.h" #import "SomAppDelegate.h" #import "MainCategory.h" #import <sqlite3.h> #import "UIImage+Resizing.h" NSInteger Val; NSInteger AIX; NSInteger AIY; NSInteger Height; NSInteger Pre; NSInteger Valtab; ...

iphone - single UIImage multiple UIImageView?

Hi all. I have a single image that needs to be placed on multiple UIImageView. I am wondering whether there is a way to save the memory in doing this? For e.g., I have a pic file. I can create one UIImage object for this file. If I create multiple UIImageView and init them with the single UIImage Object, will that save the memory? t...

what is the difference between UIImageView and drawInRect?

Hi, I want to display so many images in table cells. I knew two methods to show an image. One is creating an instance to UIImageView and show it CGRect rect=CGRectMake(x,y,width,height); UIImageView *image=[[UIImageView alloc]initWithFrame:rect]; [image setImage:[UIImage imageNamed:@"sample.jpg"]]; Another method is, CGRect rec...

set the second image by dragging on first image and then save it

Hi all, What exactly I have to do is I have 2 images one is mask and another is Photo. Mask.png is just the layout of the person and Photo.png is the image of the person in the position as per the mask.png. Now the main problem is I want the Photo.png to be resized and moved in such a way that it can be adjusted in that Mask.png. belo...

Reading string from a URL and then loading it's image in an UIImageView

I've got the following code that loads on an UIImageView the image that I want from the internet: NSString* mapURL = @"http://mydomain.com/image-320x480.png"; NSData* imageData = [[NSData alloc]initWithContentsOfURL:url]; UIImage* image = [[UIImage alloc] initWithData:imageData]; [marcaBackground setImage:image]; [imageData release]...

UIImageView gets blurry after layer transformation

Hello guys! I have a UIImageView add to a UIView as a subview. When I apply a transformation on the UIView's layer the UIImageView gets blurry. Why is that? How can this problem be resolved? view.layer.position = newPosition; I apply only this transformation. Edit: I've tested it and if I apply other transformations like these: v...

Iphone SDK App UIImageView

Hi! I'm a beginner to Iphone Development :) I am trying to make a button change an image. So I have my button - (IBAction)myButton { myUIImageView.image = [UIImage imageNamed:@"myPhoto.png"]; } I created a UIImageView in IB and I named the label and the name of this 'myUIImageView' but XCode is telling me that it's undeclared. ...

User Select and Crop UIImageView

Hey guys, I have a little issue here. I need my users to be able to select 4 different points in an image, and then, based on those points, draw a rectangle and crop the image to that rectangle. Now, I've tried the method in UIImagePickerView that let's you edit the image, but I find it's very limited, and isn't exactly perfect for my n...

UIView zoom and draw issue

Hi everyone! I have UIView wich have to be zoomed in After zooming i have to draw on this view and then zoom out. And certainly the zoom out picture have to include new drawing in proper size. So the question is -How can i zoom UIView (or maybe i should use UIImageView instead, then the question is how can i draw on UIImageView) -And...

Merge 2 image where one is moveable

Hi all, I want to merge two images where one is a greeting card with a heart shaped portion transparent and another is the image of a couple. Now I want the image of couple movable so that i can move them and resize them to set in that heart part and then I want to save that mixture of image as one image and send it as attachment in mail...

Dynamically loading images in UIImageView from database in objective c

I have saved my images in database with type BLOB. Now I am extracting these images from database using sql stmt and saving it in a NSData object. see the following code snippet NSData *img = [[NSData alloc] initWithBytes:sqlite3_column_blob(loadInfostmt, 4) length: sqlite3_column_bytes(loadInfostmt, 4)]; self.birdImage = [UIImage ima...

NSCoding doesn't seem to store the frame of my UIImageView

I can't seem to get NSCoding to store the 'frame' or 'center' properties of my UIImageView subclassed object. It seems to store everything else, both custom properties and standard class properties (e.g. 'hidden', etc...), but not the 'frame' or 'center' properties. I'm NOT trying to archive a UIImage (as this does not comply with NSCo...

Show image from documents folder

I retrieve an image I have saved at the documents directory like this: //set background image NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder NSString *imagePath = [documentsDirectory stringByAppendingPathCo...

iphone - moving a UIImageView

I'm having difficulty moving an image to another location after the first animation is finished. the image animates at a point that I've specified, then stops (that works fine). I would then like to move the image to another location and repeat. here's my code: -(void) loadTap { NSArray *imageArray = [[NSArray alloc] initWithObjects...

Really weird iPad touches bug with UIImageView

G'day guys, I currently have a really weird bug with touches being responded to in my UIImageView. I have a gallery pane in my iPad app, which is just a background imageview, and then a series of six UIImageViews that the user can touch to change the background view, organised like: 1 2 3 4 5 6 On the right side of the app. The butto...