I have one issue regarding UIImageView and UIImage I get confuse on 1 thing ie My ” UIImageView Height = 759 and Width = 748″ and I am downloading the images from server that Height and width is so so greater Such as “Image Height = 2048 and Width = 2500”
so I am little bit confuse while rendering the image on UIImageView what I pass the parameter into CGImage
I am passing the parameter to the CGImage as below
CGImage _bitmap = new CGImage (2048 , 2500 , 8 , 32 , 2048 * 4 , _colorSpace , CGBitmapFlag.ByteOrderDefault , null, true , CGColorRenderingIntent.Default);
which type of parameter I pass in CGImage() means I pass Image parameter or UIImageView parameter to CGImage so that my Image will render properly into UIImaeView
I don’t think you should bother using
CGImageat all (unless you are specifically having memory issues).Just do this:
Play around with the content mode setting to get exactly what you need.
Here is a link for content mode.