{"id":2830,"date":"2019-03-25T17:41:25","date_gmt":"2019-03-25T20:41:25","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/"},"modified":"2019-03-25T17:41:25","modified_gmt":"2019-03-25T20:41:25","slug":"e3-tips-creating-screen-objects-that-will-not-get-deformed","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/","title":{"rendered":"E3 Tips:  Creating screen objects that will not get &#8220;deformed&#8221;."},"content":{"rendered":"<div style=\"text-align: justify;\"> <span style=\"font-weight: bold;\">Issue:<\/span><br \/>&nbsp; <br \/><span style=\"font-style: italic;\">&#8220;The problem is that, according to their position on screen, some objects get &#8220;deformed&#8221;. For example, a test was made with a 150 X 150 circle. When the circle&#8217;s position on screen changes, it sometimes looks visibly smaller than its initial size, yet its properties are still 150 X 150. How can I fix this? This also happens when it is necessary to zoom the screen to fit it to the Viewer&#8217;s or Frame&#8217;s size due to resolution changes, for example.&#8221; <\/span><br \/>&nbsp; <br \/><span style=\"font-weight: bold;\">Cause: <\/span><br \/>&nbsp; <br \/>This happens because of the rounding off (truncating) occurring when HIMETRIC coordinates are converted into pixels. In the example, there are two circles with the same HIMETRIC size, 150 X 150: <\/p>\n<ul>\n<li><span style=\"font-weight: bold;\">Circle1<\/span>:&nbsp; X=0&nbsp; Y=0&nbsp; Coordinates = (0, 0, 150, 150) <\/li>\n<li><span style=\"font-weight: bold;\">Circle2<\/span>:&nbsp; X=1000&nbsp; Y=1000&nbsp; Coordinates = (1000, 1000, 1150, 1150)<\/li>\n<\/ul>\n<p>Suppose Zoom is 100%, and the computer&#8217;s resolution is an average 96 DPI. To convert HIMETRIC units into pixels, use the following: <\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PIXEL = (HIMETRIC * 96) \/ 2540<\/p>\n<p>With this formula, the objects&#8217; coordinates in pixels are: <\/p>\n<ul>\n<li><span style=\"font-weight: bold;\">Circle1<\/span>:&nbsp; GrossCoordinatesInPixel = (0, 0, 5.67, 5.67) <\/li>\n<li><span style=\"font-weight: bold;\">Circle2<\/span>:&nbsp; GrossCoordinatesInPixel = (37.8, 37.8, 43.46, 43.46)<\/li>\n<\/ul>\n<p>However, since there are no &#8220;half-pixels&#8221;, these values are truncated: <\/p>\n<ul>\n<li><span style=\"font-weight: bold;\">Circle1<\/span>:&nbsp; TruncatedCoordinatesInPixel = (0, 0, 5, 5), diameter = 5 pixels <\/li>\n<li><span style=\"font-weight: bold;\">Circle2<\/span>:&nbsp; TruncatedCoordinatesInPixel = (37, 37, 43, 43), diameter = 6 pixels<\/li>\n<\/ul>\n<p>Notice that <span style=\"font-weight: bold;\">Circle2 <\/span>is 1 pixel larger than <span style=\"font-weight: bold;\">Circle1<\/span>! <br \/>&nbsp; <br \/>&nbsp; <br \/><span style=\"font-weight: bold;\">Solution: <\/span><br \/>&nbsp; <br \/>To fix (or at least minimize) this problem, we have to set the circle&#8217;s size as a multiple of a pixel&#8217;s exact size. To do so, we must find out a pixel&#8217;s size in HIMETRIC: <\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp; HIMETRIC = (PIXEL * 2540) \/ 96<\/p>\n<p>Therefore, 1 pixel = 26,4583333333&#8230; HIMETRIC. Since this number is a repeating decimal (3333333&#8230;), the circle should be set in multiples of 3 pixels. For example, to have a circle whose &#8220;stable size&#8221; is a 6-pixel diameter, set the object&#8217;s Height = 158,75 and Width = 158,75. Whenever this object moves on screen, its size in pixels will tend to be &#8220;stable&#8221;: <\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">Circle1<\/span>:&nbsp; X=0&nbsp; Y=0&nbsp; Width=158.75&nbsp; Height=158.75<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HIMETRICCoordinates = (0, 0, 158.75, 158.75)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GrossCoordinatesInPixel = (0, 0, 6, 6)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TruncatedCoordinatesInPixel = (0, 0, 6, 6)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Diameter = 6 pixels<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"font-weight: bold;\">Circle2<\/span>:&nbsp; X=1000&nbsp; Y=1000&nbsp; Width=158.75&nbsp; Height=158.75<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HIMETRICCoordinates = (1000, 1000, 1158.75, 1158.75)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GrossCoordinatesInPixel = (37.7953&#8230;, 37.7953&#8230;, 43.7953&#8230;, 43.7953&#8230;)<br \/>&nbsp;&nbsp;&nbsp; &nbsp; TruncatedCoordinatesInPixel = (37, 37, 43, 43)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Diameter = 6 pixels<br \/>&nbsp; <br \/><span style=\"font-weight: bold;\">Tip: <\/span><br \/>&nbsp; <br \/>E3&#8217;s own screen editor allows you to created objects with a &#8220;stable&#8221; size, with no need for all these calculations. <br \/>&nbsp; <br \/>When you need a &#8220;stable-sized&#8221; object (usually, objects that need to be copied several times on screen, such as an XControl, for example), just turn off the screen editor&#8217;s grid and set Zoom in 100% while you create the object with your mouse. The size of objects created with these procedures will always be multiple of one pixel.<br \/>&nbsp; <br \/><span style=\"font-weight: bold; color: rgb(255, 0, 0);\">PLEASE NOTICE: even if you do follow the tip above and create objects whose size is &#8220;stable&#8221;, some distortions can still occur due to imprecisions when representing numbers in a float point (minimal precision losses can occur and therefore cause differences in more or less one pixel at the end). <\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Issue:&nbsp; &#8220;The problem is that, according to their position on screen, some objects get &#8220;deformed&#8221;. For example, a test was made with a 150 X 150 circle. When the circle&#8217;s&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[762],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>E3 Tips: Creating screen objects that will not get &quot;deformed&quot;. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"E3 Tips: Creating screen objects that will not get &quot;deformed&quot;.\" \/>\n<meta property=\"og:description\" content=\"Issue:&nbsp; &#8220;The problem is that, according to their position on screen, some objects get &#8220;deformed&#8221;. For example, a test was made with a 150 X 150 circle. When the circle&#8217;s&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:41:25+00:00\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"E3 Tips: Creating screen objects that will not get &#8220;deformed&#8221;.\",\"datePublished\":\"2019-03-25T20:41:25+00:00\",\"dateModified\":\"2019-03-25T20:41:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\"},\"wordCount\":514,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Screen Objects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\",\"url\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\",\"name\":\"[:pt]E3 Tips: Creating screen objects that will not get \\\"deformed\\\".[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:41:25+00:00\",\"dateModified\":\"2019-03-25T20:41:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"E3 Tips: Creating screen objects that will not get &#8220;deformed&#8221;.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"E3 Tips: Creating screen objects that will not get \"deformed\". - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]E3 Tips: Creating screen objects that will not get \"deformed\".[:] - Elipse Knowledgebase","og_description":"Issue:&nbsp; &#8220;The problem is that, according to their position on screen, some objects get &#8220;deformed&#8221;. For example, a test was made with a 150 X 150 circle. When the circle&#8217;s&hellip;","og_url":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:41:25+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"E3 Tips: Creating screen objects that will not get &#8220;deformed&#8221;.","datePublished":"2019-03-25T20:41:25+00:00","dateModified":"2019-03-25T20:41:25+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/"},"wordCount":514,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Screen Objects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/","url":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/","name":"[:pt]E3 Tips: Creating screen objects that will not get \"deformed\".[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:41:25+00:00","dateModified":"2019-03-25T20:41:25+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/e3-tips-creating-screen-objects-that-will-not-get-deformed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"E3 Tips: Creating screen objects that will not get &#8220;deformed&#8221;."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2830"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=2830"}],"version-history":[{"count":0,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2830\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}