GreGetBitmapParameters: Difference between revisions
Appearance
Created page with "GreGetBitmapParameters returns, in the buffer addressed by pInfoHd, header information for the specified bit map. This function is supported by the graphics engine. ==Synt..." |
m etwas Sauberkeit |
||
Line 1: | Line 1: | ||
GreGetBitmapParameters returns, in the buffer addressed by pInfoHd, header information for the specified bit map. | GreGetBitmapParameters returns, in the buffer addressed by pInfoHd, header information for the specified bit map. | ||
This function is supported by the graphics engine. | This function is supported by the graphics engine. | ||
==Syntax== | ==Syntax== | ||
GreGetBitmapParameters(hbm, pInfoHd, pInstance, lFunction) | GreGetBitmapParameters(hbm, pInfoHd, pInstance, lFunction) | ||
==Parameters== | ==Parameters== | ||
;hbm (HBITMAP) - input | ;hbm (HBITMAP) - input:Bit-map handle. | ||
:Bit-map handle. | ;pInfoHd (PBITMAPINFOHEADER) - input:Pointer to a [[BITMAPINFOHEADER]] or to a [[BITMAPINFOHEADER2]] structure where the returned information is stored. | ||
;pInstance (PVOID) - input:Pointer to instance data. | |||
;pInfoHd (PBITMAPINFOHEADER) - input | ;lFunction (ULONG) - input:High-order WORD=flags; low-order WORD=NGreGetBitmapParameters. | ||
:Pointer to a BITMAPINFOHEADER or to a BITMAPINFOHEADER2 structure where the returned information is stored. | |||
;pInstance ( PVOID) - input | |||
:Pointer to instance data. | |||
;lFunction (ULONG) - input | |||
:High-order WORD=flags; low-order WORD=NGreGetBitmapParameters. | |||
==Return Code== | ==Return Code== | ||
;fSuccess (BOOL) - returns | ;fSuccess (BOOL) - returns:Return codes. | ||
:Return codes. | :On completion, the handling routine must return BOOLEAN (fSuccess). | ||
:*TRUE Successful | |||
:On completion, the handling routine must return BOOLEAN (fSuccess). | :*FALSE Error | ||
:Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include: | |||
:*TRUE Successful | :*PMERR_BITMAP_IS_SELECTED | ||
:*FALSE Error | :*PMERR_HBITMAP_BUSY | ||
:*PMERR_INV_HBITMAP | |||
:Possible Errors Detected: | :Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation. | ||
:*PMERR_BITMAP_IS_SELECTED | |||
:*PMERR_HBITMAP_BUSY | |||
:*PMERR_INV_HBITMAP | |||
:Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation. | |||
==Remarks== | ==Remarks== | ||
The header information is returned as a BITMAPINFOHEADER or BITMAPINFOHEADER2 structure and gives details such as the width, height, number of planes, and number of bits per pel. | The header information is returned as a BITMAPINFOHEADER or BITMAPINFOHEADER2 structure and gives details such as the width, height, number of planes, and number of bits per pel. | ||
[[Category:Gre]] | [[Category:Gre]] |
Latest revision as of 08:31, 2 January 2020
GreGetBitmapParameters returns, in the buffer addressed by pInfoHd, header information for the specified bit map.
This function is supported by the graphics engine.
Syntax
GreGetBitmapParameters(hbm, pInfoHd, pInstance, lFunction)
Parameters
- hbm (HBITMAP) - input
- Bit-map handle.
- pInfoHd (PBITMAPINFOHEADER) - input
- Pointer to a BITMAPINFOHEADER or to a BITMAPINFOHEADER2 structure where the returned information is stored.
- pInstance (PVOID) - input
- Pointer to instance data.
- lFunction (ULONG) - input
- High-order WORD=flags; low-order WORD=NGreGetBitmapParameters.
Return Code
- fSuccess (BOOL) - returns
- Return codes.
- On completion, the handling routine must return BOOLEAN (fSuccess).
- TRUE Successful
- FALSE Error
- Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include:
- PMERR_BITMAP_IS_SELECTED
- PMERR_HBITMAP_BUSY
- PMERR_INV_HBITMAP
- Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation.
Remarks
The header information is returned as a BITMAPINFOHEADER or BITMAPINFOHEADER2 structure and gives details such as the width, height, number of planes, and number of bits per pel.