Here are some examples using the line command...
Vertical or horizontal lines are simple and there is no jaggedness

Code:

-e/brush=3 -e/tool line (10,10 10,100) -s/all (30,10 38,100) -e/cut

Note that the line tool makes the line have rounded ends no matter the brush
size setting. Conclusion the cut method is better and simple to code.

_________________________________________________________

...But there is a problem when the line is at an angle. Jaggedness appears in both methods, but it appears worse in the cut method,
and the cut method is difficult (there's no simple rule to derive the coordinates)

The result looks nice, because there is a slight antialiasing applied by mtpaint.
However this antialiasing causes problems when using the lasso tool
and pasting the line into another document.
I'll explain in next post.

Code explanation:
- a gaussian blur can only be done with 24 bits of color so start with the
correct document
-Red horizontal line is created with cut command (or fill command if you prefer)
- a=0 ( i.e. black) is needed before rotation to fill triangle edges of rotated document.

- entire document is selected and then lassoed to clipboard.

-pasted to new layer (i.e. a new document) and jaggedness is removed with
the gaussian effect (gaussian=1 )

-red line lassoed again . It is in the clipboard again.

I made a final document (a white image)
Note I filled the document with the color white (a=7).

- -e/col a=1 b=0 was needed for the correct alpha blend procedure in this example
---> Because it was a red line with some black fringing.

There are two useful commands that should be noted.
The following command will scale the image by 2. Actually height h
is scaled by 2 . The width w is assumed to be scaled by 2 as well.

Code:

-layer/new -image/scale h=x2

To make the object smaller

Code:

-layer/new -image/scale h=x.25

_________________________________________________________

To resize the document i.e. the layer and tile it at the same time
In this example both height and width are expanded with tiles.
There will be 3x3=9 tiles in total.

Code:

-i/resize =tile h=x3

Now for the final example...

The star is created in 24 bit layer and then made smaller and slightly blurred.
It is lassoed and pasted (using alpha blend method to avoid a black outline)
into the centre of a small white document which is then tiled so
that 3x3 stars are the result.

Being a tutorial on how to use mtPaint I thought this was the best place to post this. When it come to Graphics, I'm all thumbs. And while there are other snapshot apps available, I still prefer mtpaintsnapshot for that purpose. It's a built in feature of all implementations of mtpaint, and may have been assigned as the default application to take snapshots. If so, you can just press the "Print scrn" Key.

Some time ago 01micko developed a small script which added a GUI so that rather than immediately taking a snapshot you could choose to delay that for a few seconds while you made any necessary adjustments. See attached screenshot. I packed the script as a pet which added a menu/desktop entry. With that entry, mtpaintsnapshot could be assigned to a launcher on the Taskbar/panel or a desktop launcher/icon. I've attached a copy.

An advantage of using mtpaintshot as the snapshot is that immediately after the snapshot is taken it is automatically opened in mtpaint. You can, of course, immediately close that and precede to take another snapshot. But you can also immediately make quick edits or do all the things mtpaint is really good for, where the availability of "more options" on gimp or other graphic editors adds complexity and just gets in the way.

An advantage of using mtpaintshot as the snapshot is that immediately after the snapshot is taken it is automatically opened in mtpaint. You can, of course, immediately close that and precede to take another snapshot. But you can also immediately make quick edits or do all the things mtpaint is really good for, where the availability of "more options" on gimp or other graphic editors adds complexity and just gets in the way.

I love mtpaint for screen captures also, but I add a sleep 3 prefix in my jwm configuration before PrintScreen runs mtpaint -s to capture a screenshot, just so I have a little time to perhaps open a menu or whatever to show that also in the screen capture. My other favourite jwm snippets is to have ALT and up or down arrows as adjusting the volume up or down, and I also use jwm config StartupCommand ... to set the alsamixer Master, Headphones and PCM to their maximum levels. Extract of part of my jwm configuration ...

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum