[swift] UIImageの高さを取得する
UIImageの高さを取得する
//方法1 int width = CGImageGetWidth(image.CGImage); int height = CGImageGetHeight(image.CGImage); //方法2 float width = image.size.width; float height = image.size.height;
//方法1 int width = CGImageGetWidth(image.CGImage); int height = CGImageGetHeight(image.CGImage); //方法2 float width = image.size.width; float height = image.size.height;