Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nov 111 Example Program DemoMouseInk.java. Nov 112 Example Program DemoMouseUnistrokes.java.

Similar presentations


Presentation on theme: "Nov 111 Example Program DemoMouseInk.java. Nov 112 Example Program DemoMouseUnistrokes.java."— Presentation transcript:

1 Nov 111 Example Program DemoMouseInk.java

2 Nov 112 Example Program DemoMouseUnistrokes.java

3 Nov 113 Images DemoImage.java DemoImage2.java

4 Nov 114 Text Characterized by Font family Style Size and Spacing

5 Nov 115 Font Families Three types Serif A serif is a short line extending from and at an angle to the upper and lower strokes of a letter Serif fonts facilitate human perception in distinguishing among letters Sans serif Without serifs Monospaced or fixed-pitch Each character occupies the same amount of horizontal space

6 Nov 116 Serifs Illustrated AB ab Times roman Bookman oldstyle serifs

7 Nov 117 Sans Serifs Illustrated CD cd Arial Lucida sans

8 Nov 118 Monospaced Illustrated IM im Courier new OCR A Extended

9 Nov 119 Font Style Plain Italic Bold Italic + bold Hello Java World

10 Nov 1110 Font Size Font size is measured in points A point is the smallest typographical unit of measurement 1 point = 1 / 72 inch (i.e., 72 points per inch) Hello Java World 48 point font size

11 Nov 1111 Font Spacing

12 Nov 1112 Readability of Text Guidelines: Uppercase vs lowercase WORDS WRITTEN IN BLOCK CAPITALS take longer to read than those written in lowercase However, an important word written in CAPITALS is quickly perceived provided it is surrounded by words in lowercase Serif vs. sans serif For printed text, serif fonts are easier to run one’s eyes along and take in the written content For on-screen text, serif fonts generally produce less well than sans serif fonts due to poorer resolution of the display

13 Nov 1113 Example Program (shown earlier)

14 Nov 1114 Example Program DemoList3.java

15 Nov 1115 Image File Formats There are many, many file formats for storing images These include… gif, jpg, tiff, bmp

16 Nov 1116 gif gif = graphics interchange format Pronounced giff (with a hard ‘g’) Introduced in 1987 by CompuServe Inc. Very popular format for web pages Features Limited to 256 colors (8-bit) Lossless data compression (compresses best for images with lots of repetition; e.g., flat colors) Support for transparency one colour in the image’s pallete (usually the ‘background’) is treated as transparent Support for animation

17 Nov 1117 jpg jpg = jpeg = joint photographic experts group Pronounced jay-peg Features Always uses 24-bit color Lossy data compression (up to 95% reduction, but with loss of image quality proportional to amount of compression)

18 Nov 1118 tiff tif = tiff = tagged image file format Features Supports different compression schemes (lossy and lossless) Supports any resolution Black and white, color, or grey shades

19 Nov 1119 bmp bmp = bit-map Standard for Windows environment Uses a pixel map to hold line-by-line raster information Features No compression Files are large

20 Nov 1120 Example (1) Transparent gif FormatFile Size gif1639 jpg5522 tif3328 bmp7942 jpg, tif, bmp

21 Nov 1121 Example (2) Animated gif with transparent background

22 Nov 1122 Programming Challenge Solution Create a GUI layout, as follows Clear Exit Enter some text: Clear Exit Enter some text: Upon launching After resizing


Download ppt "Nov 111 Example Program DemoMouseInk.java. Nov 112 Example Program DemoMouseUnistrokes.java."

Similar presentations


Ads by Google