Drawing modes

From RealWorld Wiki

Jump to: navigation, search
RealWorld Icon Editor help index

When using drawing tools, the drawn shape depends among other also on the active modes:

Contents

[edit] Rasterization mode

This mode controls how smooth geometric shapes are translated to actual pixels.

  • Smoothing (anti-aliasing) - pixel can be partially covered by the drawn shape and edges are smooth.
  • No smoothing - a pixel is either fully covered by the drawn shape or not covered at all. This results in jagged edges.

[edit] Blending mode

This mode controls the way of combining new pixels (drawn shape) with the old ones (current image).

  • Paint over - the shape is drawn over the current content. If the drawn shape is partially transparent, the old content will be visible under the new shape.
  • Replace - new pixels will overwrite old pixels. If the new pixels are partially transparent, the old content will still be replaced and the resulting pixels will simply be partially transparent.
  • Paint under - paint the new pixels under the current ones. If the current pixels are not at least partially transparent, the drawn shape will not be visible at all.

If the current color is entirely transparent, some of the drawing tools will detect this and automatically switch to Replace mode, because otherwise the drawn shape will not have any effect.

[edit] Coordinates mode

This mode controls the constraints on the input parameters of drawing tools.

  • Arbitrary - coordinates may take any value. Shapes are specified with sub-pixel precision.
  • Integral - coordinates may only be integral.

[edit] Shape filling mode

This mode determines, how shapes are filled

  • Filled - drawn shape is filled using current fill style.
  • Outline - only shape's outline is drawn using current primary color.
  • Combined - outline is drawn and the remaining interior is filled.