uiimage

[iPhone] Rendering animation to movie

Hi @ll I have a serious problem with Core Animation in combination with the AV Foundation. I want to render the animation of several UIImages to a movie file. The animation of the images should only be the change from one image to the next, just like shown here http://appsamuck.com/day2.html. But I don't want to display this animation ...

How do i get the image name of a image in imageView?

Hi i want to upload the image to HTTP server, image upload is working fine but every time the image in the server is replaced with the new image. Can some one help me to implement the commented lines below. Thanks... - (IBAction)upload{ //NSString *imagename=imageview.image; //[self uploadImage:UIImageJPEGRepresentation(imagevi...

Using UIWebView to render images instead of UIImageView in iOS uses much less memory. Makes sense?

I just figured out that - instead of using a UIImageView to show an image - I use an UIWebView, it uses much less memory. Does that make sense for anyone? What I did was to get an ordinary .jpg file with about 280kb in size and show it on a simple app with just an UIImageView. Looking at Instrument's Object Allocations tool, the applic...

UIImages to movie with AV Foundation

I have a serious problem with the AV Foundation. I want to render the animation of several UIImages to a movie file. I just want to make a movie file in which the images are changed every 1/x second. Currently I am using the code shown here http://stackoverflow.com/questions/3401313/need-hints-for-using-iphone-sdks-avmutablevideocompo...

Drawing image with drawAtPoint (cocoa touch)

Hi, I'm new to objective-C programming for iOS. I'm struggling with a really simple task, drawing an image with code (not just including it in 'interface builder'). Here's the part of my code where I'm trying to put my image into the view: UIImage *image = [UIImage imageNamed:@"Note.png"]; [image drawAtPoint:CGPointZero]; Simple. I ...

How to get [UIImage imageWithContentsOfFile:] and High Res Images working

As many people are complaining it seems that in the Apple SDK for the Retina Display there's a bug and imageWithContentsOfFile actually does not automatically load the 2x images. I've stumbled into a nice post how to make a function which detects UIScreen scale factor and properly loads low or high res images ( http://atastypixel.com/bl...

How do I export UIImage array as a movie?

I have a serious problem: I have an array with several UIImage objects. What I now want to do, is create movie from those images. But I don't have any idea how to do so. I hope someone can help me or send me a code snippet which does something like I want. Thx! ...

UIImageView and XML Parsed Data

Hello people that are way smarter than me, I got two xml elements, one is title and the other URL of image. I am trying to show both the UILabel and UIImageView. My problem is the image not showing up. Here is what I have done so far... If I pass _track.consultant_pic into an UILabel I can see the string (http://mysite.com/ted.jpg) in...

Scalling UIImage on the screen size

Hello People, i have implemented a small method that imports an picture on the iPhone screen, but the picture is a little bit to big for the screen. This is the Method: - (void)ladeImage { id path = @"http://172.23.1.63:8080/RestfulJava/pics"; NSURL *url = [NSURL URLWithString:path]; NSData *data = [NSData dataWithContentsO...

Fastest way to save UIImage

Hey guys, I have a little issue here; my goal is to be able to process images at a very fast rate, maybe up to 10 images per second. What is happening is I'm getting a CGImage, converting it to UIImage, and saving it to disk. But I'm realizing that saving using writeToFile is quite "slow", as I need to be able to save ten of these per s...

Launching and database of png images - iPhone

Hello everyone! So, I'm actually making an iPhone app with a big library of guitar chords and scales. The scales are logical, so they are successfully draw by following musical theory. On the other hand, I have a library of 4500 small png files (3ko) for the guitar chords. My problem is that even if it's not used for the launch (but f...

How to cut a large sprite png into smaller UIImages?

For example, the png file is 1200 (h) x 50 (w) pixels, how can I cut the png and loads in 6 UIImages, each 200 (h) x 50 (w). Thanks! EDIT - thanks to Michal's answer, the final code: CGImageRef imageToSplit = [UIImage imageNamed:@"huge.png"].CGImage; CGImageRef partOfImageAsCG = CGImageCreateWithImageInRect(imageToSplit, CGRectMake(0...

Releasing UIImage after use

I want to learn the right way to alloc an uiimage and release it for memory management. When i use the following code it crashes when deallocating, if i dont use [imager release]; program doesnt crash but it shows a leak for imager. Any ideas for solution? UIImage *imager = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] ...

UIImage imageNamed returning wrong image

Hi, I'm having a weird problem using [UIImage imageNamed:] method to set table view cells' backgrounds. I typically do this for a cell: backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell_background.png"]]; For some unknown reason, the image returned is not "cell_background.png". It actually returns an older ...

iOS: Getting content of video frame at each frame during playback

Here's the thing: in my iPad app I'm playing a video using MPMoviePlayerController, the movie player's view is a subview of my main view and I have another semi-transparent view on top of the video view. What I'd like to do is redraw my transparent view every time the video view is updated, because the content of that view depends on th...

incorrect position when draw image context into UIImage that has been scale to another size;

my uiimage has been add to UIView, then i transform it to scale 1.5 when i try to draw image context it will present incorrect position how to make ImageContext in transform size ? ...

AutoResizing Image no imageView

Hello People, i am using AFOpenFlow in my app, but now the Problem is, the pictures I use are not the same size because they are from the web! And how can i autoResizing the image at the view of the iPhone??? Here is my code from this method: - (void)viewDidLoad { [super viewDidLoad]; // loading images into the queue loa...

My iPhone app crashes after returning from background. Cause: UIImage problem.

Hi all, First off, I want to say this site is AWESOME! and it helped me do lots of stuff while creating my iPhone app. Now, my problem is: When I launch my app, I have a UIImageView that loads an image depending on an if/else statements in -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event method. These images are assig...

My iPhone app crashes after returning from background. Cause: UIImage problem.

Hi all, First off, I want to say this site is AWESOME! and it helped me do lots of stuff while creating my iPhone app. Now, my problem is: When I launch my app, I have a UIImageView that loads an image depending on an if/else statements in -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event method. These images are assig...

Custom UITableViewCell imageView not updating after setImage

I've got a custom UITableViewCell class whose model object performs an asynchronous download of an image which is to be displayed in the cell. I know I've got the outlets connected properly in IB for WidgetTVC, I know that image data is being properly returned from my server, and I've alloc/init'd the widget.logo UIImage too. Why is th...