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]]
];
}
}