| Sub StretchBlt(hDC As Int32, DestX As Int32, DestY As Int32, DestWidth As Int32, DestHeight As Int32, SourceX As Int32, SourceY As Int32, SourceWidth As Int32, SourceHeight As Int32) |
| StretchBlt for use with Windows API. |
|
The graphics object of .NET does not support operations on 1bpp indexed
Images.
One solution is to convert the image to Format32bppArgb and then
use the graphics object. Obviously this is slow.
With StretchBlt you can use the Windows API to directly draw
a 1bpp image to a device context (for example to print the image).
|