![]() |
Forum Index : Microcontroller and PC projects : CMM2: Unlikely BLIT command improvement?
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
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 KingdomPosts: 10310 |
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: CanadaPosts: 1132 |
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. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |