Avatar
hogeImageView.frame.size は View のサイズですが、 hogeImageView.image?.sizeUIImage のサイズなので↓になります。 https://developer.apple.com/documentation/uikit/uiimage/1624105-size
This value reflects the logical size of the image and takes the image’s current orientation into account. Multiply the size values by the value in the scale property to get the pixel dimensions of the image.
5:04 AM
得られたサイズに scale を掛けると画像自体のピクセル単位での解像度になるようですね。
5:06 AM
たとえば、 600x400の画像を Hoge@2x として読み込むと size は300x200、 scale は 2 になるようです。これを 120x80 の UIImageView にセットすると、 homeImageView.frame.size は 120x80 、 homeImageView.image?.size は 300x200 です。 (edited)