uiimage

What is happening to memory when I do this (memory question)?

I am trying to figure out how to pass a UIImage around between various view controllers without duplicating the UIImage and increasing memory unnecessarily. The image is passed successfully using the method below, but I cannot seem to free up this UIImage later on, which ends up weighing down my app with 7MB+ of data that cannot be accou...

Strange UIImage positioning problem

I created a view in Interface Builder with a bunch of labels and an image. When I pushed the view onto a UINavigationController, it worked perfectly. I then inserted the view into a UITableView as a cell (instead); in order to do so, I had to convert change the superclass of its view controller from a UIViewController to a UITableViewC...

How to get UIImage from texture of an EAGLView?

I am trying to get a UIImage from a texture I loaded into EAGLView using the following way: //Try to get UIImage from EAGLView and assign to imageDataPhoto1 UIGraphicsBeginImageContext(myEAGLView.bounds.size); [myEAGLView.layer renderInContext:UIGraphicsGetCurrentContext()]; imageDataPhoto1 = UIGraphicsGetImageFromCurrentImageContext()...

Any way to BRIGHTEN a UIImage without using OpenGL ES?

Does anyone know of a way to simply and effectively brighten a UIImage by a specific amount? I am currently fiddling with the Apple Sample Code Example GLImageProcessing with poor results...My app currently does not use OpenGLES or EAGLViews and it is awkward trying to bridge the technology. ...

How do I save an UIImage as BMP?

Can I save (write to file) UIImage object as bitmap file (.bmp extension) in iPhone’s document directory? Thanks in advance. ...

How can I iterate on RGBA of EACH pixel in a bitmap context?

How do I iterate on EACH PIXEL in a bitmap context? I found some source that seems to be attempting to do this but it is somehow flawed. Can someone tell me how to fix this code so that I can iterate on the RGBA of each pixel? -(UIImage*)modifyPixels:(UIImage*)originalImage { NSData* pixelData = (NSData*)CGDataProviderCopyData(CGImageG...

Tricks for improving iPhone UITableView scrolling performance?

I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent, but can sometimes be jerky. I found these tips I found on the FieryRobot blog: http://www.fieryrobot.com/blog/2008/10/01/glassy-scrolling-with-uitableview/ http://www.fieryrobo...

Core Graphics has poor PIXEL iteration performance on iPhone?

I am trying to do an iteration on pixels to change the RGBA values of a UIImage without using OpenGL. I tried testing out iteration performance using the below code but was very displeased. It seemed like I could only get a few thousand iterations per second. And for a UIImage with several hundred thousand pixels, this would take way TOO...

How to NSLog pixel RGB from a UIImage?

I just want to: 1) Copy the pixel data. 2) Iterate and Modify each pixel (just show me how to NSLog the ARGB values as 255) 3) Create a UIImage from the new pixel data I can figure out the the gory details if someone can just tell me how to NSLog the RGBA values of a pixel as 255. How do I modify the following code to do this? Be Speci...

How can i take an UIImage and give it a black border?

How can i take an UIImage and give it a black border? (iphone) tnx ...

How can i take an UIImage and give it a black border programmatically?

How can i take an UIImage and give it a black border programmatically? If i can receive code, it will be great. tnx ...

Best performance when using a stretchable UIImage

Hi there, I need to use a stretchable UIImage hundreds of times in my app in multiple UIImageViews. Is it okay to globally reuse the same stretchable UIImage instead of having to recreate them in memory each time I need to add it to a UIImageView? I know [UIImage imageNamed:] caches images for better performance, but this cannot be use...

How to display a base64 image within a UIImageView?

Hey, I got this Base64 gif image: R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7 Now I want to display this Base64 String within my IPhone App. I could get this working by using the WebView: aUIWebView.scalesPageToFit = NO; aUIWebView...

Resize and crop images before displaying in UITableViewCells

Hello, i have an UITableView in my app and i have to load some images that have a fixed width but different heights. I download the images async using an NSOperationQueue and for resizing and cropping i tried to use the solution provided by Jane Sales in this post link text. i made a custom UITableViewCell class and in it i have a meth...

image alignment problem in imageView - iPhone

I have following code in my application: // to set tip - photo in photo frame NSData *data = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:pathOfThumbNail]]; UIImage *cellThumbImg; if([data length]>0){ cellThumbImg = [UIImage imageWithData:data]; } else { cellThumbImg = [UIImage imageNamed:@"130X90.gif"]; } UI...

iPhone UIImage - Image Randomizer Crashes If It Comes Across the Same Image Twice

I am building a game that pulls images randomly. After doing some testing I have realized if the same image is called twice, it crashes. I learned this by after completing the first game, I returned to the games main menu and selected to play again. I ended up getting an image which was already displayed to me in my previous game and ...

UIButton Game character selection to UIImageView animation

Hi guys, I am almost at the end of coding my kids educational application, woohoo!. But... Im stuck on something. When app loads i have my main view. It has 4 buttons for flipviews(each with ten views of content) and 4 buttons for character selection(an image that will follow you through every screen of content). Problem is im unsure...

How do I get a UIImage from an image file on my server?

How do I get a UIImage from a small image file on my server (can be .jpg or .png)? ...

possible to center my image without it scrolling along or being placed at the top

Does anyone know if it's possible to center my image when using a navigationController. With this I mean the following. When I click on a cell everything is fine ( figure 1 ) figure 1. step 1 img441.imageshack.us/img441/5026/picture5t.png step 2 img70.imageshack.us/img70/3998/picture6a.png I go back and want to click another cell ,...

Proper use of UIRectClip to scale a UIImage down to icon size

Given a UIImage of any dimension, I wish to generate a square "icon" sized version, px pixels to a side, without any distortion (stretching). However, I'm running into a little snag. Not quite sure where the problem is. Here's what I'm doing so far. First, given a UImage size, I determine three things: the ratio to use when scaling down...