← develop-01 9001 January 1990

develop-01 9001 January 1990

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

1 0 ___________________________________________________________________________________ d e v e l o p January 1990 QD32Exists() { short error; Boolean result = False; /* Assume not there */ SysEnvRec theWorld; error = SysEnvirons (2, &theWorld); if (theWorld.hasColorQD) result = (NGetTrapAddress (QD32Trap, ToolTrap) != NGetTrapAddress (UnImplTrap, ToolTrap)); return result; } main() { Boolean QD32IsImplemented; QD32IsImplemented = QD32Exists(); if (!QD32IsImplemented) PutUpInformativeMessage(); } Direct pixMaps 32-Bit QuickDraw supports two new pixel formats, corresponding to 32-bit pixels and 16-bit pixels. In each case, the pixel’s color is specified by the pixel value directly. The pixel value is not an index into a color look-up table. In a pixMap , this is specified by setting the pixelType field to RGBDirect = 16. Before 32-Bit QuickDraw, when each pixel was a single value representing an index into a color table, the cmpCount field was always equal to 1. With RGBDirect pixels, each pixel contains three components, one each for the intensities of red, green, and blue; therefore, cmpCount should be set to 3. 31 24 23 16 15 8 7 0 Red Green Blue pixelType = 16; {RGBDirect} pixelSize = 32 ; {Must be a power of 2} cmpCount = 3; {Three components: Red, Green, Blue} cmpSize = 8 ; {8 bits for each component} pmVersion = 0; {Must be set for future compatibility} pmTable {Handle to color table with 1 entry}

Reading notes: Source appears to be a developer documentation page with code listings; no advertised products or prices are present.

Printed dates
January 1990
Languages
English