Haxe 프로그래밍 언어에서 픽셀 데이터 배열을 파일 (예 : BMP 또는 PNG 형식)로 저장하는 언어 간 방법이 있습니까?픽셀 배열을 파일에 저장
class SavePixelsToFile {
static function main(){
//how can I save this array of pixel data to a file? It is a simple 2D array of RGB arrays, with the red, green, and blue components in the respective order.
var arr = [
[[0, 0, 0],[255, 255, 255]],
[[255, 255, 255],[0, 0, 0]]
];
}
}
고마워, 나는 하루 종일이 질문에 대한 답을 기다리고 있었다. :) –