{"id":374,"date":"2015-06-16T16:30:19","date_gmt":"2015-06-16T16:30:19","guid":{"rendered":"http:\/\/mitat.tuu.fi\/?p=374"},"modified":"2015-06-22T07:25:07","modified_gmt":"2015-06-22T07:25:07","slug":"eagle-pcb-cad-bmp-import","status":"publish","type":"post","link":"http:\/\/mitat.tuu.fi\/?p=374","title":{"rendered":"Eagle PCB CAD BMP import"},"content":{"rendered":"<p>Confused how to make your BMP correct sized when converting it with import-bmp?<\/p>\n<p>First of all:<br \/>\n&#8211; Make your image 2 colored BMP, great tool for Windows, Linux and OS X is the old classic <a href=\"http:\/\/www.xnview.com\/en\/xnviewmp\/#downloads\">XnView<\/a> &#8211; For colored images I suggest dithering the image to 2 colored image<br \/>\n&#8211; <a href=\"http:\/\/dangerousprototypes.com\/docs\/Cadsoft_Eagle_import_image_BMP_to_PCB_library\">Make your graphics as library package<\/a> (in Eagle), trust me, it&#8217;s worth it (you can make changes easily and don&#8217;t mess up your board since the graphic is a package)<br \/>\n&#8211; Use layer 25 (tNames) for your graphics. When you have added the package to your board, you can change it&#8217;s side by mirroring it.<\/p>\n<p>Then the secret formula:<\/p>\n<p><strong>Scale factor for pixel = wanted graphic size \/ image size in pixels<\/strong><\/p>\n<p>For example if you want 204 pixel wide image to be 10mm, you enter 0.0490196078 as the scale. (10 \/ 204 = 0,0490196078).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Confused how to make your BMP correct sized when converting it with import-bmp? First of all: &#8211; Make your image 2 colored BMP, great tool for Windows, Linux and OS X is the old classic XnView &#8211; For colored images I suggest dithering the image to 2 colored image &#8211; Make your graphics as library [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374"}],"version-history":[{"count":4,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":399,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions\/399"}],"wp:attachment":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}