android fast pixel access and manipulation

前端 未结 4 992
别那么骄傲
别那么骄傲 2021-02-06 02:06

I\'m trying to port an emulator that i have written in java to android. Things have been going nicely, I was able to port most of my codes with minor changes however due to how

4条回答
  •  别跟我提以往
    2021-02-06 02:42

    if pixelsA is already an array of pixels (which is what I would infer from your statement about containing colors) then you can just render them directly without converting with:

    canvas.drawBitmap(pixelsA, 0, 256, 0, 0, 256, 192, false, null);
    

提交回复
热议问题