Utility or routine to save/display images

Let's assume I have an image or sprite at coordinates x,y with w witdh and h height. If I were to store this image, which storage method would allow for faster drawing afterwards?

I would also like to know if there's an utility or any available routine that would allow me to store or display the the image after specifying x,y, w and h.

There might be an utility package in the archive which has much more than I need. Ideally I would prefer just one or two routines just for this purpose, and the ability to relocate them to any address. The four parameters would be specified with POKEs from Basic. I know how to do sequential or character by character data storage from Basic, but it would be too slow. I also have a machine code routine which can turn an are of the screen into UDGs (courtesy of Bloodbaz), but I'm almost sure this would be the slowest way to display an image in machine code.

Thanks. :)
Post edited by zxbruno on

Comments

  • edited March 2011
    zxbruno wrote: »
    Let's assume I have an image or sprite at coordinates x,y with w witdh and h height. If I were to store this image, which storage method would allow for faster drawing afterwards?

    I would also like to know if there's an utility or any available routine that would allow me to store or display the the image after specifying x,y, w and h.

    There might be an utility package in the archive which has much more than I need. Ideally I would prefer just one or two routines just for this purpose, and the ability to relocate them to any address. The four parameters would be specified with POKEs from Basic. I know how to do sequential or character by character data storage from Basic, but it would be too slow. I also have a machine code routine which can turn an are of the screen into UDGs (courtesy of Bloodbaz), but I'm almost sure this would be the slowest way to display an image in machine code.

    Thanks. :)

    Is X the start of a column (thus 0-31) or a PLOT-point (like 83 or so).
    If something like 83 then you don't need the entire value of the screenaddress.
  • edited March 2011
    X and Y are pixel coordinates, 0-255 and 0-175 respectively. :)
  • Anyone? :p
Sign In or Register to comment.