13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Color ............................. 93Color-palette functions ............... 95How color palettes work . . . . . . . . . . .. 96U sing a color palette . . . . . . . . . . . . . . .. 98Drawing-attribute functions ........... 99Background mode and color . . . . . . . .. 99Stretch mode ..................... 100Text color ........................ 100Mapping functions .................. 100Constrained mapping modes ....... 102Partially constrained and unconstrainedmapping modes .................. 102Partially constrained mappingmode .......................... 103Unconstrained mapping mode .... 103Transformation equations .......... 103Example: MM_TEXT .............. 104Example: MM_LOENCLISH ....... 105Coordinate functions ................ 105Region functions . . . . . . . . . . . . . . . . . . .. 106Clipping functions .................. 106Line-output functions ............... 107Function coordinates .............. 108Pen styles, colors, widths. . . . . . . . . .. 108Ellipse and polygon functions ........ 109Function coordinates .............. 109Bounding rectangles . . . . . . . . . . . . . .. 110Bitmap functions. . . . . . . . . . . . . . . . . . .. 110Bitmaps and devices. . . . . . . . . . . . . .. 111Device-independent bitmapfunctions ........................ 111Text functions ...................... 112Font functions ...................... 112Font family ...................... 114Character cells .................... 115Altering characters . . . . . . . . . . . . . . .. 116Italic .......................... 116Bold ........................... 116Underline. . . . . . . . . . . . . . . . . . . . .. 116Strikeout. . . . . . . . . . . . . . . . . . . . . .. 116Leading ......................... 116Internal leading . . . . . . . . . . . . . . . .. 117Externalleading ................ 117Character set ..................... 117ANSI character set .............. 118OEM character set .............. 118Symbol character set ............ 118Vendor-specific character sets .... 118Pitch ............................ 118Average character width ......... 119Maximum character width ....... 119Digitized aspect ................ 119Overhang ...................... 119Selecting fonts with CDI ........... 120Font-mapping scheme ........... 120Example of font selection ........ 123Font files and font resources ........ 124Metafile functions . . . . . . . . . . . . . . . . . .. 124Creating a metafile ................ 125Storing a metafile in memory or ondisk. . . . . . . . . . . . . . . . . . . . . . . . . . . .. 126Deleting a metafile ................ 127Changing how Windows plays ametafile. . . . . . . . . . . . . . . . . . . . . . . . .. 127Printer-control functions ............. 127Printer-escape function .............. 128Creating output on a printer ........ 128Banding output ................... 129Starting and ending a print job ...... 130Terminating a print job ............ 130Information escapes. . . . . . . . . . . . . .. 130Additional escape calls ............ 131Environment functions .............. 131Chapter 3 System services interfacefunctions 133Module-management functions ....... 134Memory-management functions ...... 134Segment functions .................. 136Operating-system interrupt functions .. 137Task functions. . . . . . . . . . . . . . . . . . . . .. 138Resource-management functions ...... 138String-manipulation functions ........ 139Atom-management functions . . . . . . . .. 140Initialization-file functions ........... 141Communication functions ............ 142iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!