|
Bitmap Scaling
The Win32 API also provides a function to scale a bitmap; this function, StretchBlt, performs a bit-block transfer from a rectangle in a source device context
into a rectangle in a destination device context. However, unlike the BitBlt function, which duplicates the source rectangle dimensions in the destination
rectangle, StretchBlt allows an application to specify the dimensions of both the source and the
destination rectangles. When the destination bitmap is smaller than the source
bitmap, Windows combines rows or columns of color data (or both) in the bitmap
before rendering the corresponding image on the display device. Windows combines
the color data according to the specified stretch mode, which the application
defines by calling the SetStretchBltMode function. When the destination bitmap is larger than the source bitmap,
Windows scales or magnifies each pixel in the resultant image accordingly.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|