-
Notifications
You must be signed in to change notification settings - Fork 43
How to trace images with FidoCadJ
Go to the Italian version on ElectroYou
Go to another English version on ElectroYou
It is possible to trace images with FidoCadJ by using two programs that make semi-transparent the active window or a PNG image superimposed on the screen: Peek Through for Windows and CThruView for operating systems supporting the Java Virtual Machine.
Peek Through is provided for free by Luke Payne.
Once downloaded, unzipped, installed and started, you can adjust the transparency of the active window, and turn it on and off with a key combination. The default combination is: Windows key + A.
The simple Peek Through's startup and configuration window
An usage example will be worth more than a thousand words.
If we want to trace the scissors in this picture:
Image to trace
we proceed, if we have not already done so, to start Peek Through. Then we open the FidoCadJ window above the displayed image and we make it semi-transparent with the appropriate key combination set during Peek Through's initialization (default: Windows + A):
FidoCadJ semi-transparent window superimposed to the image to trace
Using Lines, Ellipses and Bézier's curves to follow the contours the result is:
The FidoCadJ's code corresponding to this figure is:
[FIDOCAD]
FJC B 0.5
EV 20 29 42 43 0
EV 18 53 39 68 0
BE 45 42 49 35 46 25 30 24 0
BE 30 24 22 24 15 29 15 35 0
BE 45 42 57 42 62 42 67 44 0
BE 15 35 15 45 25 48 30 48 0
BE 30 48 41 48 58 47 62 50 0
BE 62 50 60 52 50 51 31 48 0
BE 31 48 18 47 13 53 13 60 0
BE 13 60 13 68 20 72 27 72 0
BE 27 72 40 73 45 65 43 56 0
BE 43 56 53 58 61 59 66 57 0
BE 66 57 71 60 75 57 76 56 0
BE 75 57 88 59 100 57 107 54 0
BE 107 53 103 50 98 48 92 47 0
BE 92 47 82 45 78 45 74 45 0
BE 75 46 73 44 70 43 67 44 0
EV 66 46 74 54 0
BE 75 46 78 48 78 54 76 56 0
LI 107 54 84 57 0
LI 104 51 82 53 0
BE 84 57 84 53 78 53 78 57 0
LI 82 53 76 56 0
BE 62 50 63 48 64 45 67 44 0
LI 107 53 107 54 0
Using Curves instead of Bézier's curves the difficulty of following the contours is greater, and you have to get the hang of it.
But the Curves (as well as the Rectangles, the Polygons and the Ellipses) can be filled with the color of the corresponding layer, by double-clicking the object and selecting Filled.
Using different overlapping Layers and changing the colors (options View -> Layers -> Modify -> RGB) you can color the figures as you wish:
The FidoCadJ's code corresponding to this figure is:
[FIDOCAD]
FJC L 4 -9936049 1.0
FJC L 5 -2959899 1.0
FJC L 6 -16777216 1.0
FJC L 7 -9936049 1.0
FJC L 8 -4254955 1.0
FJC L 9 -1 1.0
FJC B 0.5
CP 0 84 55 96 56 107 58 114 61 117 63 117 64 115 65 107 67 94 68 85 67 4
PP 92 63 114 61 117 63 117 64 94 67 93 65 89 65 88 67 85 67 5
PV 92 63 114 61 117 63 117 64 94 67 93 65 89 65 88 67 85 67 6
CV 0 84 55 96 56 107 58 114 61 117 63 117 64 115 65 107 67 94 68 85 67 6
CP 0 94 67 93 65 91 64 89 65 88 67 7
CP 1 27 40 41 34 55 41 56 50 55 52 58 52 68 52 74 53 77 54 77 54 82 54 87 58 87 64 83 68 78 68 76 67 76 67 73 68 68 68 58 67 53 66 53 66 53 67 53 73 46 81 29 80 23 69 31 59 47 59 63 61 72 60 63 58 45 58 32 56 26 50 8
EP 30 39 52 53 9
EP 28 63 49 78 9
CV 1 27 40 41 34 55 41 56 50 55 52 58 52 68 52 74 53 77 54 77 54 82 54 87 58 87 64 83 68 78 68 76 67 76 67 74 68 68 68 58 67 53 66 53 66 53 67 53 73 46 81 29 80 23 69 31 59 47 59 63 61 72 60 63 58 45 58 32 56 26 50 15
BE 72 60 73 58 74 55 77 54 15
EV 28 63 49 78 15
EV 30 39 52 53 15
CV 0 94 67 93 65 91 64 89 65 88 67 15
EP 76 56 84 64 15
Anyone wishing to color the figures with the original colors under Windows can get the RGB, HSB and CMYK components of any displayed pixel using the small free utility ColorPix:
The ColorPix utility in action
You can add black edges to a figure by duplicating it, disabling the Filled option in the duplicate, giving it a black and high priority layer (e.g. layer 12) and finally overlaying it to the original.
In order to have sufficient resolution it is advisable to work with a fairly small zoom (100% or 150%) and, if necessary, disable the "Snap to grid" button.
For those who do not use Windows, there is CThruView, written in Java, which is also free. It allows to make PNG images semi-transparent and view them above another window. In this case you have to enable the click through option to work on the window below.
You must use the Java Virtual Machine 1.6. With newer versions the click through option and perhaps other things do not work (as happened to me). Although the JVM 1.6 can co-exist with newer versions I did not want to install it, so I have not finished trying this program.
If anyone wants to try it, I'll be happy to integrate his impressions and images.
Go to the Italian version on ElectroYou
Go to another English version on ElectroYou