CMPT 165 Lecture 14: Lecture 14
Document Summary
Image resolution: number of pixels on columns/rows, measurements should be shown "y" x y" Aspect ratio: scaling down images so they are smaller in width and height. If you don"t respect aspect ratio the image becomes distorted: you can specify either height or width, the browser will scale it properly for you. Pixelation: when you zoom in on an image you see pixels, squared off edges, blockiness, artifacts you see when you zoom in, computer algorithms try and address this issue. Higher depth means mor bits to store a pixel. When specifyign colours you can use a 3 or 6 digit hex code: #fff vs #ffffff, more specific colour combinations. Instead of storing colours, you can store the index of colours in an image. 24: using patterns to create a different colour, black and white can be interlaced to make grey, checkerboard patter (can be different, helps solve storage size tradoff.