Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:14 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Unlikely BLIT command improvement?

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 07:27pm 15 Oct 2022
Copy link to clipboard 
Print this post

I expect this request wouldn't be a simple as I might think...

What is the chance of expanding the 'ORIENTATION' parameter of the BLIT command to include a few bits representing 'SCALE', much like the 'TEXT' command uses?

For example,
&B001000 - default scale of 1:1
&B010000 - scale 2 times larger
&B011000 - scale 3 times larger
   ...
&B111000 - scale 7 times larger

The scale value indicates how many times each pixel is repeated in the x and y directions.

An even crazier possibility would be separate fields for x and y scales. We can dream, can't we?

==========
I'll go back to IMAGE RESIZE_FAST now.
Visit Vegipete's *Mite Library for cool programs.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:34pm 15 Oct 2022
Copy link to clipboard 
Print this post

You don't need this. Just put the image on a spare page and then resize it using image resize then load it as a sprite
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 05:24am 16 Oct 2022
Copy link to clipboard 
Print this post

After paying more attention to what I was reading in the description of the IMAGE RESIZE (& RESIZE_FAST) command, I see that it already does most of what I requested. There's no need to use a spare page or sprite-ification. Except maybe for speed issues.

The only missing part is horizontal and/or vertical mirroring. Allowing negative values for new_width and new_height could be used to indicate mirror.
Visit Vegipete's *Mite Library for cool programs.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025