NewImageGWorld
TheNewImageGWorldfunction creates a graphics world from the width, height, depth, and color table of a specified image-description structure.
pascal QDErr NewImageGWorld (GWorldPtr *gworld, ImageDescription **idh, GWorldFlags flags);
gworld- Contains a pointer to a graphic world created using the width, height, depth, and color table specified in the image description structure pointed to in the
idhparameter.idh- Contains a handle to an image description structure with information for the graphics world pointed to by the
gworld parameter.flags- Contains graphics world flags. These flags are passed directly through to the
NewGWorldfunction. (For details onNewGWorld, see Inside Macintosh: Devices.)DESCRIPTION
TheNewImageGWorldfunction selects the appropriate color table using thedepthfield or custom color table in the image description structure. It creates a 32-bit-deep graphics world if the depth specified in the image description structure is 24.SPECIAL CONSIDERATIONS
You are responsible for disposing of the graphics world with theDisposeGWorldroutine. (For more onDisposeGWorld, see Inside Macintosh: Devices.)RESULT CODES
noErr 0 No error paramErr -50 Invalid parameter specified cDepthErr -157 Invalid pixel resolution
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help