Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

Windows 2000 Graphics API Black Book
Home | Introduction | Table of Contents | Updates | New Stuff | Links | About the Authors | Ordering
 

Errata for Windows 2000 Graphics API Black Book (First Edition; ISBN: 1-576-10876-7)

Page 57 Change ibkMode to iBkMode in the passage following the description of the SetBkMode function.
Page 59 Change fmDrawMode to fnDrawMode in the third sentence.
Page 68 In the declaration of the BitBlt function, the comment for the nYSrc parameter should start with "vertical."
Page 86 The images of Figures 2.1 and 2.2 should be swapped; the figure captions are okay.
Page 157 The second sentence following the formula for point_size should read: "In this way, units of pixels multiplied by units of points-per-inch divided by units of pixels-per-inch will yield a value in units of points." The third sentence following the formula for point_size should read: "To convert from points to device inches, you use the following formula:"
Page 167 The NOTE refers only to Tables 4.9 and 4.10, not Table 4.11.
Page 169 In the third comment line of the TextOut function declaration, "character" should be "characters."
Page 177 For Win9x/ME, the XFORM structure should be initialized as follows: XFORM xf = {0, 0, 0, 1.0}; (See the code on the CD-ROM.)
Page 181 GetCharWidths32 should be GetCharWidth32.
Page 186 For Win9x/ME, the second parameter of the EnumFontFamiliesEx function cannot be NULL. (See the code on the CD-ROM.)
Page 308 The example creates a 150x100 device-dependent bitmap, not a 105x100 bitmap.
Page 309 The example creates a 450x100 device-dependent bitmap, not a 105x100 bitmap.
Page 315 In the declaration of the CreateDIBitmap function, the "context" comment should be moved to the end of the first comment line.
Page 346 Figure 6.3 is incorrect; it should appear as this.
Page 374 Computation of unaligned_shorts_per_scanline is superfluous; just iterate over the width.
Page 376 Computation of unaligned_shorts_per_scanline is superfluous; just iterate over the width.
Page 440 Change hRgn to hrgn in the second sentence.
Page 504 The data members of the PALETTEENTRY structure should be: peRed, peGreen, peBlue, and peFlags. This change also applies to the code snippet on page 505.
Page 547 The arrows in Figure 10.2 should point to 10" for the horizontal ruler and 9" for the vertical ruler.
Page 551 The last equation should be: [xB  yB] = [xA  yA] M + D
Page 594 In Table 11.1, the last sentence in the description of the IDirectDraw7 interface should read: "The IDirectDraw7 interface requires Windows 95, Windows 98, Windows 2000, or later to run."
Page 639 In the description of the DDCAPS2_NONLOCALVIDMEM flag, the last sentence should read: "You can think of AGP memory as a special system memory area..."
Page 646 Add the following sentence to the description of the dwWHQLLevel flag: "When this member is 0, the device is not certified. When this member is 1, the device is certified but a certification date is not given."
Page 657 The second sentence in the last paragraph should be rephrased: "However, there are some advantages to setting the cooperative level to full-screen when you want to use the SetDisplayMode method."
Page 709 Add the following sentences to the NOTE: "For palettized surfaces, PixelSizeInBytes can't be retrieved by calculating dwRGBBitCount / 8. Instead, check for the presence of one of the DDPF_PALETTEINDEXEDn flags in the dwFlags member of the DDPIXELFORMAT structure."
Page 745 The following assignment is missing before the call to the lpDD->CreateSurface method: ddsd.lpSurface = lpClientMemory
Page 865 In the code listing, the last parameter to the CreateColorTransform function should be BEST_MODE + ENABLE_GAMUT_CHECKING instead of MAKELONG(BEST_MODE, ENABLE_GAMUT_CHECKING).
Page 879 Remove the defunct reference to the EnumColorProfiles function.
Page 888 The last sentence of the paragraph that follows the declaration of the CIEXYZ structure should say: "(See Chapter 18 for an example that converts floating-point values to 2.30 and 16.16 fixed-point values.)"
Page 931 The description of the CMS_SETPROOFINTENT identifier applies to the proofing Rendering Intent combo box.
Page 954 The images of Figures 17.8 and 17.9 (on page 955) should be swapped; the figure captions are okay.
Page 1035 The last sentence before the code should say: "the G97 class"
Page 1057 The NOTE should say "IJL_JBUFF_READWHOLEIMAGE" instead of "IJL_JBUFF_READPARAMS."
Page 1145 The Ms and Ls in the matrix T should be ellipses.
Page 1151 Remove "[ceo6]" from the line describing the commutative property.

 

Figure 6.3
 

Copyright © 2001 Damon Chandler and Michael Fötsch