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



Users browsing this thread: 5 Guest(s)