ios - Why CGImageGetWidth gets image's height? -
i'm facing odd thing here... when take 1 photo , select ios app. i'm doing image filtering. use following code width , height. interesting thing method "cgimagegetwidth" return photo's height, , method "cgimagegetheight" return width. don't know why. if save 1 image album web pages, , put in ios app, works well.
cgimageref cgimage = image.cgimage; size_t width = cgimagegetwidth(cgimage); size_t height = cgimagegetheight(cgimage); someone can me?
Comments
Post a Comment