2022-04-14 17:41:18 +02:00
|
|
|
#pragma once
|
|
|
|
#include <fstream>
|
|
|
|
#include <vector>
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <iostream>
|
2022-04-15 13:13:38 +02:00
|
|
|
#include <3ds.h>
|
|
|
|
|
|
|
|
namespace BMP
|
|
|
|
{
|
|
|
|
struct Bitmap{
|
|
|
|
u32 magic;
|
|
|
|
u8* pixels;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
u16 bitperpixel;
|
|
|
|
};
|
|
|
|
void PutPixel565(u8* dst, u8 x, u8 y, u16 v);
|
|
|
|
void Save(std::string path, BMP::Bitmap *bitmap);
|
2022-04-15 22:02:00 +02:00
|
|
|
void saveJpg(char *filename, u32 *pixels, u32 width, u32 height);
|
2022-04-15 13:13:38 +02:00
|
|
|
}
|