HOWTO: How to Mix GDI and WinG (125928)
The information in this article applies to:
- Microsoft WinG API, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q125928
1.00 | 1.00
WINDOWS | WINDOWS NT
kbprg kbwebcontent
SUMMARY
BitBlt(), WinGBitBlt(), StretchBlt(), and WinGStretchBlt(), can all be used
to move bits in an image from one DC to another. However, there are
different restrictions on what the source and destination DC can be for
each of the functions. In addition, the platform that the application is
running on also affects what the source and destination DCs can be.
Possible Source and Destination DC Combinations
The following two tables list some of the possible source and destination
DC combinations for each function:
The following two tables apply to:
- 16-bit Windows-based application running under Windows version 3.1.
-or-
- 32-bit Windows-based application running under Windows version 3.1
with Win32s.
BitBlt(), StretchBlt()
From To: WinGDC To: Screen/Memory DC
-------------------------------------------------------
WinGDC Yes *No
Screen/Memory DC *No Yes
*On a memory DC, the blt's return value will indicate success
but the function will not perform as expected.
WinGBitBlt(), WinGStretchBlt()
From To: WinGDC To: Screen/Memory DC
-------------------------------------------------------
WinGDC No Yes (screen only)
Screen/Memory DC No No
The following two tables apply to:
- 16-bit or 32-bit Windows-based application running under Windows NT
or Windows 95:
BitBlt(), StretchBlt()
From To: WinGDC To: Screen/Memory DC
-------------------------------------------------------
WinGDC Yes Yes
Screen/Memory DC Yes Yes
WinGBitBlt(), WinGStretchBlt()
From To: WinGDC To: Screen/Memory DC
----------------------------------------------------
WinGDC Yes Yes
Screen/Memory DC Yes Yes
REFERENCES
Modification Type: | Minor | Last Reviewed: | 7/7/2005 |
---|
Keywords: | kbhowto KB125928 |
---|
|