Why Skew Needs Its Own Algorithms
A stretch only changes the distance between pixels, but a skew moves every row (or column) by its own
amount, usually by a fraction of a pixel. A pixel cannot be painted "a third to the right", so the
editor has to choose: copy the nearest pixel and get uneven steps on every straight line, or mix the
neighbors and get smooth edges. Algorithms made for skew solve exactly this problem: they shift rows
by sub-pixel amounts without blurring the picture across them.
Every example below is made by the same code that works in the editor. On the left a drawing with thin
lines, a circle and filled blocks is skewed by 25 degrees horizontally at 100%; on the right a
16 x 16 px smiley is stretched to 300% and skewed by 20 degrees. Both are shown zoomed in.
Stretch/Skew Algorithms With Examples
Area Coverage Shear (Paeth)
Made for skew
The classic skew algorithm by Alan Paeth: every row is shifted by a fraction of a pixel, and each new pixel gets colors in proportion to how much of the old pixels it covers. Lines stay sharp, only their edges get one soft pixel, so diagonal steps disappear. Automatic mode uses it whenever there is a skew.
Supersampling 8x8
Made for skew
Each new pixel is checked at 64 points and the found colors are averaged. The inside of shapes stays as sharp as with Nearest Neighbor, while edges and diagonal steps become smooth. The result is equally clean at any angle, even close to 90 degrees.
RotSprite
Made for skew
Pixel art
Made for pixel art: the picture is first enlarged 8 times with Scale2x, then skewed, and every new pixel takes the most common color of its block. Diagonal lines get even steps, round shapes stay round and no new colors are added. When the picture is reduced, very thin lines may disappear.
Lanczos-3
For reduction
The sharpest result when the stretch is below 100%. With skew it keeps fine details crisp, but thin light halos may appear along contrasty edges.
Bicubic Sharper
For reduction
A bit sharper than Bicubic, good for photos and screenshots that are made smaller and slightly slanted.
Area Averaging
For reduction
Best for strong reduction without moiré. At 100% and above it behaves almost like Nearest Neighbor, so for pure skew prefer the algorithms made for skew.
Hermite
For reduction
Soft and clean, without halos. Lines become a little thicker and lighter than with Paeth shear.
Bicubic
Universal
Smooth gradients and moderate sharpness in any direction. A safe universal choice for photos and illustrations.
Lanczos-2
Universal
Sharper than Bicubic with weaker halos than Lanczos-3; works well for both stretch and skew of detailed pictures.
Bicubic Smoother
For enlargement
For stretching above 100%: smooth edges without steps and halos, but pixel art becomes blurred.
Mitchell-Netravali
For enlargement
A balance of sharpness and smoothness when the picture is stretched; almost no halos.
B-Spline
For enlargement
The softest result: no steps and no halos at all, but the whole picture looks blurred. Useful for backgrounds and textures.
Bilinear
For enlargement
Fast blending of two neighbors. For pure skew at 100% it gives the same result as Paeth shear; when stretching, edges look blurrier.
Browser Smoothing
For enlargement
The browser draws the picture with its own smoothing: instant even for very big pictures. Quality is close to Bilinear and may differ slightly between browsers.
Nearest Neighbor
Pixel art
The classic Paint behavior and the only algorithm before this update: the closest pixel is copied, no new colors appear. Lines become uneven steps after a skew, and strong reduction produces moiré.
Which Algorithm To Choose
- Not sure - leave Automatic: with a skew it uses Area Coverage Shear, without a skew it picks Lanczos-3 for reduction and Bicubic Smoother for enlargement.
- Drawings, text, schemes, screenshots - Area Coverage Shear: lines stay thin and sharp, edges are smooth.
- Large angles (above 45 degrees) or skew in both directions - Supersampling 8x8: the most stable result at any angle.
- Pixel art, sprites, icons - RotSprite to keep the palette and get even steps, or Nearest Neighbor for the classic hard look.
- Photos - Bicubic or Lanczos-2 for small changes, Lanczos-3 when the picture is also made smaller, Bicubic Smoother when it is made bigger.
- Very big pictures - Browser Smoothing: it is instant, the quality is close to Bilinear.
How It Works Inside
Filters such as Lanczos, Bicubic, Bilinear and Paeth shear work in two passes (the Catmull-Smith
method): first every row is stretched and shifted, then every column. Each pass is one-dimensional,
so a skew never blurs the picture across the direction of the shift. When the picture becomes
smaller, the filter automatically widens to average the pixels that disappear, so there is no moiré.
Pixels outside the picture count as transparent, which is why the slanted edges come out smooth.
Supersampling and RotSprite look at the picture directly through the exact inverse transformation.
Skew angles are limited to -89...89 degrees: at 90 degrees the picture would become infinitely wide.
If you skew a selection, only the selected fragment changes. Every transformation is saved in the
history and can be undone with Ctrl+Z. To change the size in pixels with a lock for proportions use
Resize Image; to add margins or crop use
Resize Canvas.
How This Command Fits The Paint Online Workflow
Paint Classic keeps the familiar desktop-paint model: draw or select an area, open the Image menu,
choose the command, adjust the dialog fields when the command has a dialog, and apply the result to
the canvas. Stretch/Skew is part of that image-editing stage, so it is useful after the drawing or
selected fragment is already prepared.
For accurate work, use selection first when the transformation should affect only part of the
picture. If nothing is selected, the command applies to the whole canvas.
Main features
The online Stretch/Skew menu command is suitable for quick browser-based image editing without
installing a
separate
graphics application. It can be used for educational drawings, simple diagrams, icon drafts,
screenshots,
annotations, retro-style paint art, and fast corrections before sharing an image. Since the editor runs
in the
browser, the workflow is immediate: open Paint Classic Online, choose Stretch/Skew, set the necessary
option,
apply it on the canvas, and save or share the result.