Nintendo 3DS >> C/C++ >> SDL v1.2

Save BMP


參考資訊:
1. libctru doc
2. 3ds-examples

說明:

API
int SDL_SaveBMP(SDL_Surface *surface, const char *file)

main.c

#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>
 
int main(void)
{
    SDL_Surface* bmp = SDL_LoadBMP("sdmc:/3ds/main.bmp");
    SDL_SaveBMP(bmp, "sdmc:/3ds/saved.bmp");
    SDL_FreeSurface(bmp);
    SDL_Quit();
    return 0;
}


返回上一頁