|
Image mangling is the art of taking something nice you've made, and applying tools to it to make it fit to the patch and dream you're working on. The first part of the mangling system is the Flip, Rotate, & Skew dialog, which also offers a resize, but the menu entry was already rather long. When you open the dialog, you will find that it looks mighty similiar to Text Maker's dialog, the effects panel, and it is, same dialog, same functions, same code. For the interested, the image in the screen shot to the left was done with a resize of the width to 156 percent, using the Lanczos filter, rotating by 45 degrees, and skewing vertically left edge up. And rotating by a non 90 angle does carry the warning that artifacts are introduced to the results. The Save replaces the image which was active when the dialog was invoked. Aside from the fact that this dialog offers filters for the resize, which is still limited in scope, there's not much here that isn't explained over in the Text Makers Effects.
This is another one of them big overloaded forms, however I divided it into two operational modes, one is the mangler as seen above, the other is with the chopper functions.
This version also has shortcuts to the subfunctions found in the dialog so you can apply some of the effects directly to the image you're working on without having to invoke the dialog. Mostly it's the simple effects, like skewing, flipping, and rotating by 90's.
The other side of the dialog I call the Chopping Toolbox, it has a multiplexed operation where you can switch between them without having to reload the dialog. It offers 5 functions, one which is available to the other 4 modes as a pre operation operation, resizing the image first.
Whenever you're in any of the modes, the resulting number of images is displayed in the section's panel. When you use the resize to get the image to fit evenly into the desired number of shapes, the status bar will reveal the resulting number of shapes with leftovers as you make changes to the resize options, the main panel's values don't change until you click the Resize Image Button. You can use either the Percentage or Pixels for the desired resize, and the checkbox to Keep the aspect ratio works no matter which value you adjust. Quirk. If you are resizing an image, and just want the resized image, do not use the APPLY button, and the Save will save the resized image to your desired destination. The Reload Original does what it says, and resets the values for resizing to the original sizes. This resize offers filters for tuning the results, for the most part, the box filter does quite nicely.
Left clicking in the results pane shows the results, if any, right clicking shows the original image. This applies to the other mode of the dialog as well.
Chop Into Floors - takes the entire image and does floor chopping operations on it. There's two modes to operate in, and you can do the rotation to either the left or the right. When creating floors, the leftovers are not handled, if the remaining amount of image to the edge does not cleanly fit into a floor tile, it's discarded. The two modes are:
 Skew - does a pixel by pixel relocation of the target to the destination, the operation acts on a 32x32 section of the image, resulting in a 32x62 image.

Rotate - operates on a 44x44 section of the image by rotating it, resizing it vertically to 32 pixels high, then applying a mask to the results.

Chop Into Walls - converts the image into strips, the width of each determined by the width selection, and skews them either in the "left" direction, or the "right". The option for either even or odd is just the number of starting pixels for the strips, if odd, it starts with a 1 pixel strip, then does the rest of the skewing at a 2 pixel width. Even does 2 pixels all the way. Each strip is made from a section of the source image until it runs out of image to work with, or it reaches the limit imposed by the width selection. This function does not discard any sections.

Chop Into Squares - breaks the image up into chunks, each chunk's width and height determined by the values you enter. You can also elect to just have it break it up into vertical or horizontal strips. This function does not discard any sections.

The rotation offers the 4 simple mods of 0, 90, 180, & 270, which are quick renders, and more complex modes where you can select the precise rotation factor you want. The quick rotates are clean rotations, while the precise modes will introduce artifacts to the result, fairly unavoidable at this point. The Red Label is a button which brings up an advanced rotation system, too funky to explain, and there's no exit from that mode, you will have to close the dialog and restart.
When dealing with any of the sections above, you can freely switch between them. The dropdown next to the save offers two modes of saving the results, one is to a new window, the other is to the window which was active when the dialog was entered. I was thinking about offering an option to subdivide the results into multiple windows, but that would cause problems if you happened to accidentally select a mode which had the potential of generating dozens of images. |