--- Manual --- -- Downloads -- - Simugraph home page -

Drops Manual

Drops

Abstract

Drops is a simple drawing and painting tool. It comes in two flavors, Drops8 for colormapped images and Drops16 for truecolor images.

Disclaimer

Drops is copyrighted by Hansjörg Malthaner. All right reserved. There are no warranties, expressed or implied. Use at your own risk.

Table of contents

Overview

Concepts

Using Drops might be very different from other drawing tools. Drops is simple, direct and fast. There are a few common usages throughout the program. In the following the left mouse button is abbreviated to LMB, the middle mouse button is MMB and the left mouse button is named RMB.

  • LMB starts/chooses/activates things.
  • During most drawing operations you can pick a new drawing color from the image by using the MMB.
  • The right mouse button breaks an action and finally brings you back to the main menu. If there are several nested actions, you need to press the RMB a few times to get back to the main menu.

Another pretty basic concept in drops is the block. This is a rectangular image area taken with the (see copy tool) from the image or loaded from a file. The block determines the pattern for the drawing mode pattern (map). The block also is the data base for the pen tool and the pen-drawmode can take pen data from the block. To rotate or flip image areas, the must be copied as block. Scaling is a bit different, it takes an area from the image, scales it and stores the result as block.

Usage

Using Drops is usually a sequence like this:

  • Choose a tool from the main menu by clicking the tools button. This hides the menu and brings the image to front.
  • Work with the tool on the image.
  • Get back to the main menu to choose another tool, drawing mode or color. Please note that you can pick colors while painting with MMB, this is usually quicker than going back to the main menu to choose another color.

Main Menu

Main menu
Drops main menu

The main menu contains buttons for all tools. below the main menu there is the current color map displayed. Click a color with LMB to select this color for painting (foreground color). A click with RMB onto a color marks this color as the new background color. Foreground and background colors may be the same color. The pen tool treats the background color as transparent. The text tool writes text according to foreground and background colors.

At the right border of the drops window you'll find a few useful things.

  • Top right is the real time magnifier which always displays the area below the mouse pointer magnified.
  • Below the real time magnifier there is the coordinate display which shows always the current mouse position.
  • Below that is the context sensitive short help frame. The short help frame always gives hints which actions are available at this point. It usually list actions bound to keys and mouse buttons. If you have problems using a tool, take a look at this, it will guide you.

Loading/Saving

Drops can load and save images, color maps and image blocks.

Drops can read PNG, JPEG, TGA, PPM, GIF and LBM images. (Also a internal format called RAW).

Drops can write PNG, JPEG and PPM images. (Also it can write RAW images and images as C header files, but this is experimental).

Drops autodetects image formats during loading. Format detection is done by reading the image, not by using the name extension. I.e. if you rename 'blubber.jpg' to 'blubber.png' Drops will still recognize that this is a PNG file and use the correct image loader.

Drops for Linux can load images stored in gzip compressed format. I.e. frogjump.ppm.gz will first be decompressed (using gunzip) and then loaded. The file is not affected from decompression, it remains compressed. Drops for Linux can also compress images during saving, if the name ends with .gz. I.e. After loading frogjump.ppm.gz you can save it to the file and drops will save it in ppm format and then compress the file using gzip. (Note: if you use Windrops and have gzip and gunzip installed this might work also, but it is untested).

It detects the desired format from the name during saving (i.e. if you tell to save a image to a file called 'sunrise.png' it will save it as a PNG image.) If drops does not recognize the filename extension, it ask which format to use.

Drawing modes

Drops uses drawing modes to affect the operation of all drawing tools. The modes affect the way the tools modify the image. Often you'll find that if Drops seems to lack a tool, you just did not use the appropriate drawing mode.

Mode color (col)

This is the basic drawing mode. The drawing tools apply the chosen color to the image. This mode is automatically selected if a new color is chosen in the color map.

Mode pattern (map)

Instead of applying the same color to each painted pixel, a pattern is used. The pattern is taken from the block.

Mode light (lgt)

Instead of applying color to the image this affects the brightness of the painted spots. It may lighten or darken. This can be adjusted by setting the Lg value from the rightmost menu colum.

Mode pen (pen)

Instead of painting single pixels, a bigger pen is used. Pen shape and color are determined by the settings from the 'Pen' dropdown menu.

Mode shape (shp)

Similar to mode pen, but only the shape of the pen is used. The chosen color is used for painting.

Drawing tools

Freehand (Free)

The freehand tool lets you draw arbitrary shapes. Press LMB to start painting.

Line

The line tool lets you draw straight lines. Press LMB to start a line, LMB again to finish the line. Now you can move the line. Place the line with LMB. If you want you can hold LMB pressed and drag the mouse to paint with the line.

Zigzag line

The zigzag line tool lets you draw zigzag lines. Press LMB to start a line, LMB again to place a corner. Press RMB to stop adding segments.

Parable segment

The parable tool lets you draw curved lines. Press LMB to start a line, LMB again to place the end. Move the mouse to curve the line. Press LMB to accept the line, RMB to discard the line.

Ellipse segment

Similar to the parable segment tool, just uses a different formula for the curve and you get different curves from this.

Rectangle

The rectangle tool lets you draw rectangles. Press LMB to start a rectangle, LMB again to finish the rectangle. Now you can move the rectangle. Place the rectangle with LMB. If you want you can hold LMB pressed and drag the mouse to paint with the rectangle.

Circle

Usage is the same as the rectangle tool, except that this tool draws circles.

Ellipse

Usage is the same as the rectangle tool, except that this tool draws ellipses.

Brush

The brush tool allows to paint with a large filled rectangle. Most often used to color or wipe big areas quickly. For detailed work the pen tool is much better. To use the brush drag the rubber band box to the appropriate size and click LMB. To paint with the brush, press LMB and drag the mouse.

Halo

Example:

Base image
Base image
Halo effect
Halo tool applied

The halo tool is a filling tool which draws color gradients between the borders. This gives the borders a 'halo' effect. in Drops8 the results are most often not very pleasant because the colormap only in rare cases contains all needed colors for the gradients. Results in Drops16 are usually much better. The results depend strongly on clever chosen border colors and shapes. Probably you need to experiment a bit with this tool until you get the results you need. Pre-drawn colored areas inside the shape might be useful to guide the color gradients.

Slanted ellipse

Usage is very similar to the parable segment tool. This tool allows to paint slanted and perspectively distorted ellipses (useful for drawing cut tubes).

Slanted rectangle

Usage is very similar to the parable segment tool. This tool allows to paint slanted and distorted rectangles.

Magnifier (Zoom)

The magnifier can zoom an image area. You can then work on the zoomed area with all tools. At the lower right corner a real-size version of the zoomed area is displayed. This lets you control your work in real size look, handy for working on small things with shall look realistic.

A second LMB click on the zoom tool brings you back to the unzoomed image view. While working zoomed, no undo is available. But you con undo all changes of a zoom session after returning to unzoomed mode by using the undo tool.

You can switch between a grid mode and solid zoom by changing the Lp: setting in the rightmost main menu column. Lp: Grd selects grid mode, Lp: Blk selects solid mode.

Brightness, Gamma and Contrast correction (Light)

This is actually a collection of tools which work very similar. You can choose one of the operations brightness, gamma or contrast correction and apply this operation to one or all of the RGB color channels. Operations affect the whole image. In Drops8 you can choose if the transform should be applied to the image or the color map. In Drops16 always the image is transformed.

You can use this tools to correct color and lightness problems of scanned images or digital photos. Some of the operations are also available as filters.

Replace color range with another range (x-Col)

Example:

Base image
Base image
Color range replaced
Color range replaced
by blue colors
Color range replaced by pattern
Color range replaced
by pattern

This tool can replace a color range with another color range or a pattern. In drawing mode color (col) it replaces color ranges with color ranges. In drawing mode pattern (map) it replaces color rages by a pattern, taken from the block (see copy). The pattern is shaded according to the lightness of the replaced color area.

Replace color range with a color (d-Col)

This works pretty much like the x-Col tool but instead of replacing a color range with another range or a shaded pattern it replaces the range with a single color or a plain pattern.

Turn block (Turn)

This tool allows to turn the block interactively. You can choose from interpolated operation or quick operation. Turning with interpolation is pretty slow. You can also choose if the full image shall be sued as background during the turn operation. Having a background image also slows down the operation, but less than using interpolation.

Fill block in shape (Shape)

Example:

Base block
Base block
Area to fill
Shape to fill
Area filled with block
Filled with
horizontal flow

The block can be filled into a arbitrary shape. It might even have inner holes. The Block is warped into the shape and around the holes. If you choose 'horizontal' mode, the block is cut vertically at the places where holes exist and flows horizontally around the holes. 'Vertical mode' makes horizontal cuts and flows vertical. 'Both' is a combination of both with might or might not be useful.

This is basically a very mighty tool, but it is very tricky to use.

Color locks (Locks)

Locked colors are immutable. This means no drawing operation can affect locked colors. If you want to have immutable areas in your image and they have distinct color you can use color locks to make the areas immutable.

To actually activate color locks, click the "Lk:" setting from the main menu. If it says 'Lk: on' the locks are activated. 'Lk: off' means locks are disabled. This is the default because the locks need extra processing time during painting.

The locks use colormap indices to lock colors. Therefore they only work in Drops8.

Copy image area (Copy)

The copy tool copies an rectangular image area into the block. The block can be pasted into the image again, but also affects the pattern used in drawing mode pattern (map) and is the source for the pens shape and colors. Drops can store only one block at a time. Copying a new area destroys the former block. Copied blocks can be saved to image files.

Paste

The paste tool copies the block back into the image. Drops can load the block from an image file or copy it from the image.

If you want to copy the block back into the image, but block pixels of background color to be transparent use the pen tool in mode map.

Flood fill (Fill)

Example:

Base image
Base image
Area filled with color
Area filled with color
Area filled with pattern
Area filled with pattern

The flood fill tool can fill areas. In drawing mode color (col), it fills an area with a color. In drawing mode pattern (map) it fills an area with a pattern, taken from the block (see copy). In mode light (lgt) if changes the areas brightness. Modes pen (pen) and shape (shp) are not terribly useful for the flood fill tool.

To determine which areas to fill the fill tool matches colors. The base color is the color of the point where the tool was applied. Flood fill fill all adjacent points from this point which have a similar enough color to this point. Which colors are similar enough is determined by the fill tolerance setting.

You can change the fill tolerance in the rightmost column of the main menu. It's the box labeled 'Ft:'. A fill tolerance of 0 means exact match, a tolerance above zero matches similar colors too. The higher the number the less precise the match needs to be. A fill tolerance of -1 means to match every color but the currently chosen color.

Gradient fill (SFill)

Example:

Base image
Base image
Area filled with color
Contour fill with
color gradient
Area filled with randized color gradient
Contour fill with
randomized color gradient

The gradient fill tool can fill areas with color gradients. It knows about horizontal, vertical, bidirectional and contour aligned color gradients. The examples above are contour aligned color gradients. This tool can also apply some randomization to the color gradient, breaking the surface, making it look rough.

The gradient fill tool is supposed to fill patterns in drawing mode pattern (map). The pattern is supposed to be filled shaded, according to a lightness gradient. This does not work in Drops v2.19

Color range controlled fill (RFill)

This is very similar to the flood fill tool. The only difference is that the area to be filled is determined by a color range instead of a single color. This tool often needs a higher fill tolerance setting than the other fill tool.

You can change the fill tolerance in the rightmost column of the main menu. It's the box labeled 'Ft:'. A fill tolerance of 0 means exact match, a tolerance above zero matches similar colors too. (In case of RFill it matches colors similar to any color in the range). The higher the number the less precise the match needs to be. A fill tolerance of -1 means to match every color but the currently chosen color.

Turn block by 90 degrees (Rot90)

This turns the block by 90 degrees, to the left, or to the right.

Bold (Bold)

This tool enlargens areas of foreground color in horizontal, vertical or both directions.

Flip block (Flip)

This tool allows to flip the block vertically, horizontally or in both directions.

Very simple text tool (Text)

A very simple text tool. You can write text into the image, in exactly one font font and the chosen foreground and background colors.

B-Splines (Spli.)

A B-Spline is a smooth curve. The curve is controlled by a set of points which attract the curve. To draw a B-Spline you first place a few points, each by pressing the LMB. If you have placed all desired points press the RMB. Now you can move the points: grab one with the LMB and drag it. The B-Spline will follow the moves. If the B-Spline is of the desired shape, press RMB.

Now you have a final chance to judge: press LMB to accept the B-Spline or RMB to undo it.

Undo (Undo)

This resets all changes to the image when you left the main menu last time.

Switch drawing surfaces (x-Pic)

Drops features two drawing surfaces. Use this to switch to the other drawing surface. The contents of the second surface are lost if a new image is loaded.

Bend block (Bend)

Example:

Base image
Base image
Bending example 1
Horizontal, parabolic
bend.
Bending example 2
Vertical, triangular
bend

This tool can bend the block aligned to elliptic, parabolic and triangular shapes in horizontal or vertical direction.

Pen painting (Pen)

The pen tool uses the block to draw. Depending on the drawing mode there are different effects:

Airbrush (Spray)

Example:

Base image
Spray plain color
Bending example 1
Spray in light (lgt)
drawing mode.
Bending example 2
Spray in pen (pen)
drawing mode.

The airbrush tool sprays pixels onto the image. Usually the sprayed area is circular and the spray density is higher in the middle of that area.

You can change the overall spray density by changing the "Sd:" setting from the main menu. You can switch to a recangular spray by changing the "Sp:" setting from the main menu. Both settings are found in the rightmost column.

Shear block (Shear)

This allows to shear the block along any of the axes. It converts a rectangular block into an arbitrary tetragon. If you need a more precise alignment along one axe only you should try the slope alignment tool

Smear colors (Smear)

Works a bit like the airbrush tool, but instead of adding new color to the image, it moves pixels around. This can be useed to give sharp edges a jagged look or to randomize smooth color gradients.

Cut without border (Crop)

Works like the copy tool, but removes any border from around the image.

Cut rectangle (CutRe)

Works like the copy tool, but lets you cut an area of fixed size. You can enter the size pixel precise, say 64x64 and then move a fram of this size over the area you want to cut. Use this if you need to copy areas of a certain size.

Outline (Outl.)

This tool draws an outline around an arbitrary shape.

Keyboard

Key: Action:
L Load an image.
S Save the current image.
Shift-L Load a block.
Shift-S Save the current block.
A Load a colormap.
B Save the current color map.
Q, X Quit (exit) the program.
F Color statistic.
I Displays brief information about this version.
T Display brief information about the color depth and image size.
C Spread Colors (out of order).
M Mix Colors (out of order).
N Resize window.
G Toggle magnifier grid.
O Toggle drawing mode.
D Enter the lightness factor for drawing mode 'light'.
P Toggle rectangular/circular airbrush.
Y Enter the spray density for the airbrush.
TAB Pick a new color for drawing (during any operation). Emulates the middle mouse button.
Cursor keys Move mouse.
Shift-Return Emulates the left mouse button.

Hansjörg Malthaner - Fuggerstr. 1 - D-70563 Stuttgart - E-Mail: hansjoerg.malthaner@gmx.de