Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font from a string pattern - help needed
#13
(08-27-2023, 02:06 AM)grymmjack Wrote:
(08-27-2023, 01:15 AM)TerryRitchie Wrote:
(08-26-2023, 11:59 PM)grymmjack Wrote: thanks @bplus I will try to use the full argument list.

`_PUTIMAGE` is very flexible but horribly painful sometimes to remember which how what.

When I started thinking about it like this...:

_PUTIMAGE TO_IMAGE_XY, FROM_IMAGE, TO_IMAGE, FROM_IMAGE_XY   (or simply _PUTIMAGE TO, FROM, TO, FROM)

...I started remembering how to use and form it much better and faster. The 1st and 3rd parameters relate to the same image and the 2nd and 4th parameters also relate to the same image.

In my opinion it's the most powerful and versatile graphics command QB64 has. A huge improvement over GET and PUT from the QuickBASIC days.
This also makes sense. Thanks @TerryRitchie.

What the heck does `STEP` do in `_PUTIMAGE` ? Does this let us use like snap to grid or something?
STEP is basically from the last point, just like with LINE.

LINE (100, 100) - STEP(300, 100), Red, BF

The above draws a box starting at 100, 100 and draws it 300 pixels wide and 100 pixels high.  It's the equivalent of: LINE (100, 100) - (400, 200), Red, BF

Reason for usage??

Drawing set graphics at various points.   LINE (x, y) - STEP (300, 100), Red, BF

_PUTIMAGE works on that same style Widht/Height concept with STEP.
Reply


Messages In This Thread
RE: Font from a string pattern - help needed - by SMcNeill - 08-27-2023, 02:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Word Processor Using Single String Pete 3 248 02-28-2026, 12:07 AM
Last Post: Pete
  Custom Font 12x24 CP437 with 24x24 for Roguelike onetruetroy 3 587 10-06-2025, 06:11 PM
Last Post: grymmjack
  generate multiple size fixed-width fonts on the fly (no editor needed) madscijr 13 1,594 07-21-2025, 03:37 PM
Last Post: madscijr
  b+ String Math Update bplus 31 5,266 04-11-2025, 11:56 AM
Last Post: bplus
  I'm adding SQR to my new faster string math routines... Pete 17 3,372 04-01-2025, 04:56 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)