I have posted MPI 4.3.3 at the usual address : http://modulopi.pagesperso-orange.fr/
Some progress in the Paint pict module.
- The selection tools are working. Including an innovation, the "one click lasso" allows selecting with a single click a contiguous area where the color is not the eraser color instead of having to surround it with the classical lasso.
- A new implementation of the stipples allowing much better antialiasing, including antialiasing brushes. Unfortunately, there is a conflict that I couldn't solve between antialiasing and the brushes with the blend option (antialiasing requires blending). Thus, when this option is set, the brushes are not antialiased.
- More accurate lines width. Lines may have stipples too. They may also have round or square ends and they can be forced to horizontal or vertical with the shift key.
- Another way of implementing the mouse tracking which dramatically reduces the CPU usage and makes the tools more responsive when dragging quickly.
- I've implemented some alpha options for the tools and the selection. With the tools, the difference is visible only when setting the ink of the graphic to alpha (and when painting with colors whose alpha<1, of course). With the selection, when setting the option to "set alpha of the tool", the alpha of the selection will be preserved instead of being blended with the alpha of the area where moving it, only the color will be blended.
- Implemented cmd-D for duplicating the selection.
- Large graphics. Last but not least, when the size of the picture exceeds the capacity of the video card, OpenGL is supposed to fall back to the software renderer. The problem is that this renderer is not only slower, it also has some ... well, let's say idiosynchrasies (it never crashed me though). After many tests I finally succeeded to get it working at a reasonable speed. It's not as fast as the hardware renderer but at least allows painting larger graphics.
There are two new features in the icns maker :
- it is aware of the opcolor of the grc you drop and is using it for calculating the masks (you don't need to set its ink to transparent).
- contextclick in the icon allows choosing the way a small graphic is enlarged for building larger components of the icns, either direct or by step which leads to more antialiasing.
In the PI, in the bevel and roundrect buttons cards, there is a new little blue button. For bevels, it is enabled only if the button has an icon. Clicking this button will build from the selected button a graphic with the same visual behavior as the button.
There are some advantages in these graphic "buttons" :
- They may be copied to another project without having to copy the icon resource.
- It will also avoid possible conflicts when having different icons with the same ID in different projects (it was initially done for this reason).
- Those built from a roundrect button may be used on top of a picture without the white rectangle the real button has around.
Fixed a bug in the uprops module.
Fixed some bugs in the IP when converting cicn to icns.
S.