Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 516
Posted: 04:13pm 30 Sep 2022      

Hi Peter,
From the manual, Page 58. :-(
  Quote  BLIT LOAD will load a blit buffer from a 24-bit bmp image file. x,y define
the start position in the image to start loading and w,h specify the width and
height of the area to be loaded.
e.g.
BLIT LOAD #1,"image1", 50,50,100,100
will load an area of 100 pixels square with the top left had corner at 50,50
from the image image1.bmp
BLIT CLOSE will close the memory buffer '#b' to allow it to be used for
another BLIT READ operation and recover the memory used.
Notes:
? Thirty two buffers are available ranging from #1 to #32.
? When specifying the buffer number the # symbol is optional.
All other arguments are in pixels.

So I suspect this is your SPRITE LOADBMP or BLIT LOADBMP, but with the wrong command?
I've got around it for the moment by doing a :-
Load Image "small.bmp"
 For i=1 To 12:Sprite Read i,((i-1) Mod 12)*20,(i-1)\12*20,20,20:Next i

I'll try the SPRITE LOADBMP or BLIT LOADBMP? in a bit.
Regards Kevin.