      <'#%)0:58;2l3;2*)
¡ -").3;2'#%¡ 3;2.) "( #%.$-l679*/:41¡ 679*3;2.$-¡ )3;2.679(#% .$-l, .(-!'& ¡ &-!'+& 2* %+(+ 
(CPU)

#$'

(*)+&+!(+"#$'D/A



2.
,2.
1/
30




RAMDAC

3',-()*+l!

 )*+¡ ',-(&$'"¡ VRAM (Video RAM)l%-#¡ )*+!. ! !

l (scan line)¡ /%-# 

4

H=>L;HB9?:=lBJLEFGI7 0'*CG¡ )52MN1lD:>L;HB9?:=. !145¡ -2/%7-$57!
• CRT, JL<I8E, …
• XYCK?>, …

¡

1CG-2&6#+,*•  M N7)5&.#'",*• #@JA./(3/",*5     

6

Ivan Sutherland  Sketchpad7,)+.l("¡ (!&¡ "
1(02&l "(0pixel1 $¡ (&l -*+/ %#'&8 l
l 

ll


9

:

l 9 "9bit¡ 6 :• →08→1 • '/780#&)14

l

!



¡ " • .*75,$(
• %7+7-,$(• 35+2,$(••  ()

10 



()11

Photoshop12  13

14   150

15

 



150 (16   50

17

 



50 (

18

*24-+41
l 
l 5")!
¡ 5)8bit (1byte)
! #"• 0→ % • 255→ % (¡ &'$ ((%())• 23.,3(12bit )• Photoshop$16bit04/•  "!(19l !:R# :G#:B"   

20l



¡  ¡ C = (R, G, B)


(1,0,0)(1,1,0)(1,1,1) (0,1,0)(0,0,0)
21  (RGB) (CMY)

RedCyan ()

Green

Blue

Magenta

Yellow

22

Photoshop RGBCMYK23

Photoshop 24 CMYK25

CMYK 7=L?6
lCMYK 2.':/57=L?6:
9*&9¡ MN57 $"*¡  -;3!/9l7 sRGB 2.1(,6*%¡ #6 PC D<AHK=7 CMYK :2+4'¡
=L?@>CEHJLB7O3)&01)8
CMYK 274'MFI=G* sRGB )8 Nl6

http://www.iwashi.org/archives/3342
26  

1⏬⣲1⏬⣲

ࣇ࣮࣒࣓ࣞࣔࣜ

ࣇ࣮࣒࣓ࣞࣔࣜ

27

'#(l&( !"$%(%)'*¡ (%(% ¡ GIF
ࡈ࡟࡯ࡓࡔࡕ࡝

0
1
2
3
4
5

1
2
3
456

2
3
45
6
7

3456
77456777

࡞࠶ࠢࠕ࠶ࡊ࠹࡯ࡉ࡞

0
1
2345ࠗࡦ࠺࠶ࠢࠬ 6756
7777677777࠺ࠖࠬࡊ࡟ࠗ

77
7
7
77

⦡࠺࡯࠲

28

$'$ 

&'!"#%'   '


29

 

xy

 (x, y) h wy + x wy + xw
  30 point(x, y, c)lvoid point(int x, int y, const double *c)¡ (x, y)   c  ¡ c[0] : , c[1] : , c[2] : , 0 ≦ c[0], c[1], c[2] ≦ 1y (x, y) c  x31

point()

/*  */const double red[] = {1.0, 0.0, 0.0};
const double blue[] = {0.0, 0.0, 1.0};
  /*  */void draw(int width, int height){
point(3, 5, red);point(width, height, blue);}32
(x 0, y) - (x1, y)  < x1)
  (x 0 =BEGINx  x0yx0(x, y) x1x x+1
Yx<= x1NEND

33

C 
/*  */int x;
x = x0;do{point(x, y, c);++x;}while (x <= x1);/*  */int x;for (x = x0; x <= x1; ++x)
{point(x, y, c);}/*  */int x;
x = x0;while (x <= x1){point(x, y, c);
++x;}

34


(x 0, y0) - (x1, y1) (x0 < x1, y0< y1)

BEGINy  y0
(x 0, y) - (x1, y)  y1y y+1
Yy<= y1
Ny0

ENDx0x135


C1

R1G1

B11
C = C0(1 - t) + C1t

CRGB

C0

R0

G0

B0t

R = R0(1 - t) + R1t
G = G0(1 - t) + G1t
B = B0(1 - t) + B1t036

(x0, y0) - (x1, y1)
BEGIN (x0 < x1, y0 < y1)

C1y  y0t  (y - y0) / (y1 - y0)
C  C0(1 - t) + C1t(x0, y) - (x1, y) C  y1C0y

yy+1
Yx

x1y  y0
NEND37



x, y, x0, y0  int () int t;
t = (y – y0) / (x – x0);t  double () double t;t = (y – y0) / (x – x0);

 double  () double t;t = (double)(y – y0) / (double)(x – x0);

38






l charl unsigned charl shortl unsigned short
l int
l unsigned
l unsigned int
l longl unsigned long

l floatl double


l 'A'
l 65
l 0x41l -100l 1L

l 0.75l .0075e2
l 0.075e1
l .075e1
l 75e-2

39

40