{"id":72,"date":"2022-05-16T21:05:39","date_gmt":"2022-05-16T20:05:39","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/?page_id=72"},"modified":"2022-05-16T21:33:34","modified_gmt":"2022-05-16T20:33:34","slug":"graphics","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/graphics\/","title":{"rendered":"Graphics"},"content":{"rendered":"<h2 style=\"color: red\">Bitmap Graphics<\/h2>\n<p><span class=\"TextRun SCXO175833116 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO175833116 BCX8\">An image is made up of<strong> tiny dots<\/strong> called\u00a0<\/span><\/span><strong><span class=\"TextRun SCXO175833116 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO175833116 BCX8\">pixels<\/span><\/span><\/strong><span class=\"TextRun SCXO175833116 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO175833116 BCX8\">. The\u00a0<\/span><\/span><strong><span class=\"TextRun SCXO175833116 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO175833116 BCX8\">resolution<\/span><\/span><\/strong><span class=\"TextRun SCXO175833116 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO175833116 BCX8\"><strong>\u00a0<\/strong>determines the quality of the picture.\u00a0\u00a0 The smaller the pixels the finer the detail that can be displayed on the screen.<\/span><\/span><span class=\"EOP SCXO175833116 BCX8\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-73\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210432\/GetImage-3-300x88.png\" alt=\"\" width=\"631\" height=\"185\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210432\/GetImage-3-300x88.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210432\/GetImage-3-624x184.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210432\/GetImage-3.png 712w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>High Resolution\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Low Resolution<\/p>\n<p><span data-contrast=\"auto\">The term resolution is used to state the total number of pixels in an image. Bit mapped graphics are resolution dependent. This means that once an image is created its resolution is set. If the image is scaled it may become pixelated.<\/span><\/p>\n<p><span data-contrast=\"auto\">Zooming in on the image makes the fact that every pixel is stored a lot clearer.<\/span><\/p>\n<h2 style=\"color: red\">Vector Graphics<\/h2>\n<p><span data-contrast=\"auto\">Vector graphics store an image using geometrical objects like points, curves and polygons.\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Each object is saved as a\u00a0<\/span><b><span data-contrast=\"auto\">set of attributes\u00a0<\/span><\/b><span data-contrast=\"auto\">&#8211; a description of how it is to be drawn.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-76\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210846\/Screenshot-2022-05-16-210755-300x127.png\" alt=\"\" width=\"300\" height=\"127\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210846\/Screenshot-2022-05-16-210755-300x127.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210846\/Screenshot-2022-05-16-210755.png 576w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2 style=\"color: red\">Examples<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-77\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210918\/Screenshot-2022-05-16-210833-300x202.png\" alt=\"\" width=\"432\" height=\"291\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210918\/Screenshot-2022-05-16-210833-300x202.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210918\/Screenshot-2022-05-16-210833-624x421.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16210918\/Screenshot-2022-05-16-210833.png 735w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/p>\n<p><span data-contrast=\"auto\">The computer changes the information in the set of attributes if:<\/span><\/p>\n<ul>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">an object is\u00a0<\/span><b><span data-contrast=\"auto\">moved<\/span><\/b><span data-contrast=\"auto\">\u00a0to a new position on the screen.<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">an object is\u00a0<\/span><b><span data-contrast=\"auto\">resized<\/span><\/b><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-79\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16211529\/Screenshot-2022-05-16-211059-300x178.png\" alt=\"\" width=\"438\" height=\"260\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16211529\/Screenshot-2022-05-16-211059-300x178.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16211529\/Screenshot-2022-05-16-211059-768x457.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16211529\/Screenshot-2022-05-16-211059-624x371.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16211529\/Screenshot-2022-05-16-211059.png 868w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p><b><span data-contrast=\"auto\">File Size &#8211; Bitmap<\/span><\/b><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">A bitmap graphic nearly always has a much larger file size than\u00a0 a vector graphic<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">A bitmap stores every pixel<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"auto\">Therefore a blank graphic where every pixel is white will have a large file size.<\/span><\/li>\n<li data-aria-posinset=\"4\" data-aria-level=\"2\"><span data-contrast=\"auto\">When colour is added to a pixel or detail is changed in a graphic there is no change to a file size\u00a0<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"auto\">File Size &#8211; Vector<\/span><\/b><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">A vector graphic only stores the instructions in how to draw each object.<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Less storage space than a vector graphic<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"auto\">When an object is added to a vector graphic the file size is increased<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-81\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949-300x123.png\" alt=\"\" width=\"637\" height=\"261\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949-300x123.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949-1024x419.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949-768x315.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949-624x256.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212004\/Screenshot-2022-05-16-211949.png 1260w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<p><b><span data-contrast=\"auto\">Scaling Larger &#8211; Bitmap\u00a0<\/span><\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-82 alignleft\" style=\"margin-top: 0.857143rem;margin-right: 1.71429rem;margin-bottom: 0.857143rem;font-size: 1rem\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212113\/GetImage-4.png\" alt=\"\" width=\"251\" height=\"194\" \/><\/p>\n<p><span data-contrast=\"auto\">Bitmap graphics are resolution dependant. If you scale a bitmap it will pixelate and you will see the individual pixels<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b><span data-contrast=\"auto\">Scaling Larger &#8211; Vector<\/span><\/b><\/p>\n<p><span data-contrast=\"auto\">Vector graphics are resolution independent and therefore when scaled larger will not pixelate<\/span><\/p>\n<p><b><span data-contrast=\"auto\">Layering\u00a0<\/span><\/b><\/p>\n<p>Bitmap &#8211; <span data-contrast=\"auto\">\u00a0are a 2-D array of pixels therefore you cannot put one pixel on top of another<\/span><\/p>\n<p>Vector &#8211; <span data-contrast=\"auto\">allow you to move objects behind or in front of other objects<\/span>\u00a0<span data-contrast=\"auto\">Vectors graphics can be layered<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212511\/Screenshot-2022-05-16-212327-300x84.png\" alt=\"\" width=\"300\" height=\"84\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212511\/Screenshot-2022-05-16-212327-300x84.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212511\/Screenshot-2022-05-16-212327.png 556w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Uses<\/strong><\/p>\n<p><strong>Bitmap<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Can edit individual pixels<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Mostly used for photo editing<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-84\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212910\/GetImage-5-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212910\/GetImage-5-300x200.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212910\/GetImage-5.png 345w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Vector<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Can only be made up of mathematically define shapes<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Mostly used for purposes like CAD (Computer Aided Drawing)<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-85\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212946\/GetImage-6-300x168.png\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212946\/GetImage-6-300x168.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16212946\/GetImage-6.png 374w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2 style=\"color: red\"><span class=\"TextRun SCXO65849838 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO65849838 BCX8\">Advantages<\/span><\/span><span class=\"EOP SCXO65849838 BCX8\">\u00a0<\/span><\/h2>\n<p><strong>Bitmap<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Can edit down to the individual pixel level<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Adding extra detail to the picture does not increase the file size<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"auto\">Can create photo realistic images<\/span><\/li>\n<\/ul>\n<p><strong>Vector<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Have a small file size as only each object attributes are saved<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Objects can be scaled larger without pixelating are they are resolution independent<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"auto\">Objects can be layered<\/span><\/li>\n<\/ul>\n<h2 style=\"color: red\"><span class=\"TextRun SCXO65849838 BCX8\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXO65849838 BCX8\">Disadvantages<\/span><\/span><span class=\"EOP SCXO65849838 BCX8\">\u00a0<\/span><\/h2>\n<p><strong>Bitmap<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Have a large file size as every pixel needs to be stored<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Increased picture size\u00a0<\/span><span data-contrast=\"auto\">\u2013<\/span><span data-contrast=\"auto\">\u00a0the images is pixelated as resolution dependant<\/span><\/li>\n<\/ul>\n<p><strong>Vector<\/strong><\/p>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Difficult to create photo-realistic images as can only work with objects<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">Adding extra objects to the picture increases the file size<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Bitmap Graphics An image is made up of tiny dots called\u00a0pixels. The\u00a0resolution\u00a0determines the quality of the picture.\u00a0\u00a0 The smaller the pixels the finer the detail that can be displayed on the screen.\u00a0 High Resolution\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-72","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":6,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/72\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/72\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/media?parent=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}