Images

Is there any way to add images into the true basic program?

Comments

Images

Hi,

Your image needs to be in BMP or JPG format. To import the image use:

CALL Read_Image(type$,boxstring$,filename$)

where type$ can be "MS BMP" or "JPEG"
where filename$ is the name of the image file.

The image is imported and converted to the internal format used by TB called boxstring$

To display the image use:

ASK PIXELS xpix,ypix
SET WINDOW o,xpix-1,ypix-1,0
BOX SHOW boxstring$ at x,y

where x,y are the pixel co-ordinates of the bottom left corner of your image.

Regards
Big John