KenDown wrote: ↑Mon 12 Jun 2023, 07:46
Displaying a picture in SDL is not quite as easy and straightforward as in BB4W
Nonsense. It's
exactly the same command (*DISPLAY or OSCLI "DISPLAY..."). As I said, the
only difference is that BBCSDL accepts more image formats.
As a first step you will need to INSTALL the imglib library.
Whether or not you choose to use the IMGLIB library is
completely unrelated to whether it's BB4W or BBCSDL (both have that library).
The OP was asking whether the process of displaying an image in BBCSDL is different from BB4W.
It is not. The most straightforward way of displaying an image is to use *DISPLAY, this works
in both BB4W and BBCSDL.
That command provides most of the features that you are likely to want: you can choose the size and position, you can flip the image on either axis, and you can specify a 'key' colour which is treated as transparent.
If you need capabilities not offered by *DISPLAY (for example
rotating the image, or using a
linear key) then the next most straightforward approach
in both BB4W and BBCSDL is to use the IMGLIB library, But that's not what the OP was asking.
Then you will have to ensure that your window has the hdc (whatever that is)....
The rest of your post is specifically about IMGLIB and therefore not relevant to the question at hand.
Also be aware that the coordinates used by the imglib library may not be the same as those you are used to with BB4W
Untrue, they are the same. IMGLIB uses standard BBC BASIC graphics coordinates specifically to avoid this complication.
If you don't know the answer to a question, and especially when I've already answered it accurately, please don't post misleading and unhelpful information.