Crea sito

DOSBOX LOGO TOOLS v0.3


Preamble

The file dosbox_logo.h in the sources of DosBox 0.74 contains two images that will be created with the function:
SDL_Surface* logos= SDL_CreateRGBSurfaceFrom((void*)logo,32,32,32,128,0x000000ff,0x0000ff00,0x00ff0000,0);
As read in http://sdl.beuc.net/sdl.wiki/SDL_CreateRGBSurfaceFrom the function will draw an image with this properties:

Here some tools to switch images between various formats:

  1. Tool 1

    Converts from so called "DosBox format" to "PPM ASCII format"

  2. Tool 2

    Converts from "PPM ASCII format" to so called "DosBox format"

  3. Tool 3

    Converts from so called "DosBox format" to a byte sequence that you can paste in DosBox compiled Windows exe (1024 bytes long)


Tool 1 - From DosBox format to PPM ASCII format

This form convert an imae from DosBox format to PPM ASCII format.
In this textarea you should paste an image in DosBox format I. E. you can use the image's data contained in dosbox_logo.h of whom you should paste data between #ifdef LOGO_1 and his #endif).
The resultant converted datas can be saved in a text file with the extension .ppp and opened and modified in IrfanView.

Image in DosBox format to convert:

Image converted in PPM format:


Back to menu

Tool 2 - From PPM ASCII format to DosBox format

This form convert an image from the PPM ASCII format to the DosBox format
In this textarea you should paste an image in PPM ASCII format EXACTLY as saved by IrfanView 4.35 (you can get a sample from FromIrfanView.ppm)
This because PPM ASCII format is a lenient format so the logic to read any PPM ASCII file is to much complex for our purpose.
The resultant converted DosBox format image can be paste in dosbox_logo.h to replace the original image.

Image in PPM ASCII format to convert:

Image converted in DosBox format:


Back to menu

Tool 3 - From DosBox format to byte sequence

In this textarea you should paste an image in "DosBox" format that is the image's data contained in dosbox_logo.h (I. E. in dosbox_logo.h from 0.74 version).
You should paste ascii data between #ifdef LOGO_1 and his #endif.
The resultant converted byte sequence can be paste in a DosBox exe to replace the original image.

Image in DosBox format to convert:

Image converted in a byte sequence:

1024 bytes rendered:


Back to menu

Licenza Creative Commons
DosBox Logo Tools v0.3 by Francesco Sblendorio, Adriano Esposito is licensed under a Creative Commons Attribuzione 3.0 Unported License.