Re: bit map graphics

Discussions related to graphics (2D and 3D), animation and games programming
Hated Moron

Re: bit map graphics

Post by Hated Moron »

On 18/02/2023 16:05, geoffevenden via groups.io wrote (cross-posted from the Discussion Group):
Hi
I am a new user. can you import bit map or jpeg images to a program
In BBC BASIC for SDL 2.0 the *DISPLAY (OSCLI "DISPLAY") command will display a BMP, GIF, JPG or PNG image (plus some others).

If rather than displaying it you want to import the image as a handle so that you can display (and manipulate) it later, use the imglib library.

If you want the best possible performance, e.g. in a video game, use the gfxlib library which is optimised for speed.

So the answer is that there are several ways of importing an image, depending on what you want to do with it.
Hated Moron

Re: bit map graphics

Post by Hated Moron »

Hated Moron wrote: Wed 22 Feb 2023, 18:54 So the answer is that there are several ways of importing an image, depending on what you want to do with it.
And I forgot one...

If the image is to be used to represent an object in a physics simulation, use the box2dgfx library.