{"id":104,"date":"2025-07-06T11:10:59","date_gmt":"2025-07-06T18:10:59","guid":{"rendered":"https:\/\/www.kerneltrick.com\/?p=104"},"modified":"2025-07-06T11:10:59","modified_gmt":"2025-07-06T18:10:59","slug":"a-circuit-image-blending-tool","status":"publish","type":"post","link":"https:\/\/www.kerneltrick.com\/?p=104","title":{"rendered":"A circuit image blending tool"},"content":{"rendered":"<p>Another old project that someone might find useful.<\/p>\n<p>This is a tool I wrote to help create schematics from manufactured PCB&#8217;s.<\/p>\n<p>Basically it will take a top and bottom image of a circuit board and re-map the images to the same scale and orientation so that it&#8217;s easier to create a schematic.<\/p>\n<p>Here is basic usage example.<\/p>\n<p>When the program loads, you&#8217;re presented with 3 tabs. On the first tab &#8216;Load Image A&#8217; this button will open a file dialog to pick an image. The supported image types are: bmp, gif, jpeg,png, tga and webp.<\/p>\n<p><a href=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB1.png\" rel=\"attachment wp-att-105\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-105 size-medium\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB1-300x233.png\" alt=\"\" width=\"300\" height=\"233\" srcset=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB1-300x233.png 300w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB1-768x596.png 768w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB1.png 1025w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>When the Image is loaded, you can flip or rotate the image to get the orientation that&#8217;s preferred.\u00a0 There is also a rectangle with 4 control points. Move these control points cover the pcb area of interest.<\/p>\n<p><a href=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-106\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2-300x232.png 300w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2-1024x792.png 1024w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2-768x594.png 768w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB2.png 1029w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The same process is used for &#8216;image B&#8217;. Notice in the example that &#8216;Flip Y&#8217; checkbox is checked so that both the A and B images have a matching orientation.<\/p>\n<p><a href=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-107\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3-300x232.png\" alt=\"\" width=\"300\" height=\"232\" srcset=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3-300x232.png 300w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3-1024x792.png 1024w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3-768x594.png 768w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CB3.png 1026w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once both images are loaded, the &#8216;Blend&#8217; tab will be available, There is a slider at the top which will adjust the blend of the 2 images front and back.<\/p>\n<p><a href=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CBanim1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-108\" src=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CBanim1-300x231.gif\" alt=\"\" width=\"300\" height=\"231\" srcset=\"https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CBanim1-300x231.gif 300w, https:\/\/www.kerneltrick.com\/wp-content\/uploads\/2025\/07\/CBanim1-768x591.gif 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>There are also some hot keys to control the blending without using the mouse.<\/p>\n<p>A,S,D with set the blending levels to 25%, 50% and 75%.<br \/>\nZ,X,C will adjust the blending levels to 0%,50%,100%.<\/p>\n<p>The blend tab also has a primitive drawing tool for making markers on the blended image.<\/p>\n<p>The program and included Blitzmax source code can download from <a href=\"https:\/\/www.kerneltrick.com\/download\/Circuit_Blend_Tool_v01.zip\">HERE<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another old project that someone might find useful. This is a tool I wrote to help create schematics from manufactured PCB&#8217;s. Basically it will take a top and bottom image of a circuit board and re-map the images to the same scale and orientation so that it&#8217;s easier to create a schematic. Here is basic&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/www.kerneltrick.com\/?p=104\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[24,28,25,26,27],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-programming","category-uncategorized","tag-circuit","tag-electronics","tag-image","tag-pcb","tag-schematic"],"_links":{"self":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":0,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kerneltrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}