Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 ijrgb 格式的文件,其中 i 和 j 是像素坐标,r,g,b 是范围从 0-255 的颜色值。我已经从文件中以单个数组(按行主要顺序)扫描了它们,但我的绘制像素没有按预期工作。请帮帮我。也给代码..
很难确定您的问题是什么,因为您没有解释它并且没有显示您的代码,但是,OpenGL 中没有 ijrgb 格式。因此,您必须将数据转换为受支持的格式(例如 rgb,例如)。