iphone - A UIImageView or UIImage Subclass With Other Methods -


Gentlemen,

I would like to extend the functionality of a UIImageView or UIImage (the other) that I Can display a particular image in a scene and I can ask about it myself. Since this is a graph, I want to be able to ask this special UIImageView that a specific X value is given which is given a special x value.

(Do not pay attention to making the graph program. For any other reason. Anywho ...)

But - now pay attention here! - I'm a n00b! I've successfully written a program that shows the image using the addviewview and some other stuff, so I know a little bit.

Is anyone with me the best option (UIImageView or UIImage) and that class The best way to increase is that I can load the image and later I can query it for relevant information?

I already thank you

code> UIImage instead of UIImageView , I think that is the best way to follow MVC patterns ..
However, when you say that you have a special x value for Y Want the value, do you have access to 'function', which gives y for a given x? If not, you have to trim all the Wi-pixel loops in an image given at the given X-place and it will be determined which pixel color is and what happens to the Y-position. However, the origin of the graph would have been to the bottom-left of the image, it would be inflexible. For more information about this, check out:


Comments