oreohour.blogg.se

Programs using vector graphics vs raster graphics
Programs using vector graphics vs raster graphics











  • Draw an open black circle centred at 50% x 50% and with a radius of 50% of the canvas.
  • For example, we might represent our smiley face as: Instead of having a grid of pixels and giving each of them a particular colour, we’ll represent our image as a set of drawing instructions. Vector graphics are a very different way to represent our pictures. We need to decide on this trade-off when doing drawings like this – the balance between image resolution and the cost of working with the images. This, in turn, can make our pictures harder to work with, both in terms of rendering them onto the screen and in terms of actually manipulating them. However, the more pixels we have, the larger our image is to store on disk and in memory. The more pixels we work with, the more detail we can put into our image. We can improve this by having a higher resolution image – that is, drawing the same image on a much larger canvas, which gives us more pixels to define our image. zoomed in or stretched to fit a larger screen – then the lack of detail will be exaggerated, and the image will look even more blocky. In particular, if we want to display the same image only larger – e.g.

    programs using vector graphics vs raster graphics

    We then colour some of these pixels black and other pixels yellow, and the rest can be set to white as a background:Īs we can see, this is visibly a smiley face though it’s very blocky, and it’s impossible to give it any real detail. We start by defining a canvas size – for example, 10 pixels by 10 pixels. Our image is the overall product of all these pixels when seen together.įor example, if we want to draw a smiley face. Drawing tools have many ways to achieve this, but ultimately they all come down to giving every one of our pixels a colour. Once we have a canvas, drawing our image simply gives each of our pixels the correct colour. We can consider this the canvas on which we’ll draw our picture. For example, we might define our image as 640 x 480, meaning it’s 640 pixels wide and 480 pixels tall. This is the number of pixels wide and high that our image will be.

    programs using vector graphics vs raster graphics

    The first thing that we need to do is to define the size of our picture. When seen together, these pixels are all given a specific colour, and the picture is the product of all these pixels. Raster images represent our picture as a grid of picture elements – or pixels. This is the format computer monitors work with, and thus, video cards ultimately have to produce. Raster graphics are the format that most people will traditionally think of when talking about computer graphics.













    Programs using vector graphics vs raster graphics