Creating UIImage from raw RGBA data

后端 未结 3 1383
夕颜
夕颜 2020-12-09 04:53

I have been trying to convert an array RGBA data (int bytes) into a UIImage. My code looks like as follows:

/*height and width are integers denoting the dime         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-09 05:40

    The problem is solved now. I get the image that I want displayed but still unable to figure out why the width and height are different. Essentially nothing wrong with the program per say. The only problem being width and height.

提交回复
热议问题