Raster Graphics Lecture.docx

2 Pages
79 Views
Unlock Document

Department
Computer Science
Course
CSC104H5
Professor
Daniel Wigdor
Semester
Fall

Description
Lecture 3 Raster Graphics Digitization: breaking things into chunks Red, green and blue ▯ olours of pixels  Pixels Decimal: 24,97,255 Binary:    11000,1100001,11111111  ▯11000110000111111111                  (1=wide pit, 0=small pit) Hardware: (medium dependent) ­There are 256 level of red 255 101111111 =f2  16byte per colour per pixel     8 bits in byte  0x9999ff­­>after “0x” is a hexadecimal number HTML Colours #fffff= white #00000= black #ff0000= red #990000= darker red #cc0000 = lighter red #1B0000= dark red (slightly darker) #0000ff = blue #CCCCCC = grey GIF’s LZW Compression 1. Scan the picture, make a list of all the colours 2. Created a palette of the colours you found 3. For every pixel in the image, replace the colour value with the location in the  palette where that colour is stored 4. Write the palette and the new pixels to disk  Ex 1: Palettes Steps 1 and 2: Position Value Zero 0xCCCCCC One
More Less

Related notes for CSC104H5

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit