Raster images

Raster image conversion and display code is generated in vedi, using the popup on the project file tree. By chosing the entry "convert image to vectrex raster" the dialog for image conversion is displayed. (see also the vedi→Raster images documentation)

The popup menu is only activated while an image file is selected in the current project. You have to download or create image files befor you can convert them. If you have a file available, you can easily add the file to your project. Place the mousecursor over the project name and press the right mouse button.



add a file to the project


Chose "add file"... and navigate in the resulting file choser to the image file of your desire.



add an image file


By chosing a file - the file is copied to the project directory and is NOW available.



convert image to vectrex raster


Selecting "convert image to vectrex raster" opens the - dialog: (which is explained in "Raster images")



convert image dialog


Exiting the above dialog with "create" will (...hm...) create sources in the current project directory.
(The name of the generated sources are derived from the chosen file. In the following it is assumed that the name given is "ghost.png".)
The generated sources are accompanied by an example raster display program. The example routine is programmed for bi directional raster data, if you want to use the provided routines - be sure that the corresponding checkbox is checked.

Note:
You can chose whether you want to generate uni- or bi- directional data (and examples).

Following sources are generated:

A vectrex playable binary file can be generated by setting the generate ghostMain.asm file as the main file in the project.



set example main


The format and the actual display routines are documented in the source code. Just a few bullet points...



example main


The actual generated raster data is kept in the file ghost.asm :



ghost.asm




example raster display