Claims
- 1. A method for invoking a function to create a device-independent bitmap, comprising:(a) issuing, by an application program, a function call of the form CreateDIBSection (a, b, c, d, e, f), wherein a through f are parameters and: a represents a handle to a device context; b represents a pointer to a data structure that describes the format of a device-independent bitmap to create; c represents a value that specifies whether members of the data structure contain explicit color values or palette indices; d represents a pointer to a buffer that receives the address of the bitmap bits; e represents an identifier of a memory-mapped object from which the bitmap may be created; f represents a value that specifies an offset; (b) receiving, by an operating system, the function call and parsing the call to retrieve the parameters; and (c) issuing, by the operating system, an acknowledgment to the application program that the function call has been received.
- 2. The method of claim 1 wherein:a is named hdc; b is named lplpinfo; c is named dwUsage; d is named lplpBits; e is named hSection; and f is named dwOffset.
- 3. The method of claim 1 wherein issuing an acknowledgment comprises issuing a value g to the application program, g representing a handle to the bitmap if the function succeeds.
- 4. A method for creating a device-independent bitmap, comprising:(a) issuing, by an application program, a function call of the form CreateDIBSection (a, b, c, d, e, f), wherein a through f are parameters and: a represents a handle to a device context; b represents a pointer to a data structure that describes the format of a device-independent bitmap to create; c represents a value that specifies whether members of the data structure contain explicit color values or palette indices; d represents a pointer to a buffer that receives the address of the bitmap bits; e represents an identifier of a memory-mapped object from which the bitmap may be created; f represents a value that specifies an offset; (b) receiving, by an operating system, the function call and parsing the call to retrieve the parameters; (c) issuing, by the operating system, an acknowledgment to the application program that the function call has been received; and (d) executing a function CreateDIBSection that creates a device-independent bitmap with the retrieved parameters and that performs the following steps: accessing a data structure describing a format for the device-independent bitmap; creating a bitmap in memory according to the format; and identifying the bitmap to the operating system.
Parent Case Info
This is a continuation application of prior application Ser. No. 08/355,406, filed Dec. 13, 1994, now U.S. Pat. No. 6,279,001, which is a continuation-in-part of prior application Ser. No. 08/238,349, filed May 5, 1994 now U.S. Pat. No. 5,384,463.
US Referenced Citations (1)
Number |
Name |
Date |
Kind |
5434913 |
Tung et al. |
Jul 1995 |
A |
Non-Patent Literature Citations (3)
Entry |
“ObjectWindows Programmer's Guide” Turbo C++ for Windows pp 1-3, 203-236, 1994.* |
Device Driver Adaption Guide, Microsoft Corporation, 1992; Chapters 1, 2 & 10. |
Yao, Borland C++ 4.0 Programming for Windows, pp. 52, 53, 124-135, 216-221, Object Windows Programming Guide, (1994). |
Continuations (1)
|
Number |
Date |
Country |
Parent |
08/355406 |
Dec 1994 |
US |
Child |
09/031316 |
|
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
08/238349 |
May 1994 |
US |
Child |
08/355406 |
|
US |