A very easy question, can you help me please

lovelyxinxin_1983 lovelyxinxin_1983 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Sorry for my English, but I have no Chinese IME here.

The problem is how can I show a picture according to a predefined data array?

For example.

short[] pixeldata = {0, 255,
0 255};

height = 2;
width = 2;


then I have a 2*2 picture, which looks like

black white
black white

Thank you



...全文
评论 6
收藏 已收藏
分享
返回顶部
lovelyxinxin_1983
界面 15,976 成员 115,866 内容