Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
Bitmap Class for Visual FoxPro application
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Form Magnifier
How to make a VFP form fading out when released (GDI version)
StretchBlt
..msdn    Add comment     W32 Constants      Translate this page
Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary.
Code examples:
How to make a VFP form fading out when released (GDI version)
Bitmap Class for Visual FoxPro application
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Form Magnifier
Declaration:
BOOL StretchBlt(
  HDC hdcDest,      // handle to destination DC
  int nXOriginDest, // x-coord of destination upper-left corner
  int nYOriginDest, // y-coord of destination upper-left corner
  int nWidthDest,   // width of destination rectangle
  int nHeightDest,  // height of destination rectangle
  HDC hdcSrc,       // handle to source DC
  int nXOriginSrc,  // x-coord of source upper-left corner
  int nYOriginSrc,  // y-coord of source upper-left corner
  int nWidthSrc,    // width of source rectangle
  int nHeightSrc,   // height of source rectangle
  DWORD dwRop       // raster operation code
);
FoxPro declaration:
DECLARE INTEGER StretchBlt IN gdi32;
    INTEGER hdcDest,;
    INTEGER nXOriginDest,;
    INTEGER nYOriginDest,;
    INTEGER nWidthDest,;
    INTEGER nHeightDest,;
    INTEGER hdcSrc,;
    INTEGER nXOriginSrc,;
    INTEGER nYOriginSrc,;
    INTEGER nWidthSrc,;
    INTEGER nHeightSrc,;
    INTEGER dwRop
Parameters:
hdcDest
[in] Handle to the destination device context.

nXOriginDest
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.

nYOriginDest
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.

nWidthDest
[in] Specifies the width, in logical units, of the destination rectangle.

nHeightDest
[in] Specifies the height, in logical units, of the destination rectangle.

hdcSrc
[in] Handle to the source device context.

nXOriginSrc
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.

nYOriginSrc
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.

nWidthSrc
[in] Specifies the width, in logical units, of the source rectangle.

nHeightSrc
[in] Specifies the height, in logical units, of the source rectangle.

dwRop
[in] Specifies the raster operation to be performed.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
= StretchBlt(hDstDC, 10, 100, cnDstWidth, cnDstHeight,;
    m.hSrcDC, nX-nSrcWidth/2, nY-nSrcHeight/2,;
    nSrcWidth, nSrcHeight, SRCCOPY)

My comment:
Not all devices support the StretchBlt function. For more information, see the GetDeviceCaps.
Word Index links for the StretchBlt :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-19 12:00:00
Modified: 2007-06-11 21:58:51
Visited in last 7 days: 28
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.159.180)
2.07 min.Function: 'SetWindowRgn'
2.18 min.Function: 'waveOutGetNumDevs'
2.82 min.Function: 'SetMenu'
2.87 min.Function: 'ShowWindow'
3.07 min.Function: 'waveOutGetErrorText'
3.13 min.Function: 'SHEnumKeyEx'
3.55 min.Function: 'SQLManageDataSources'
3.62 min.Function: 'SelectObject'
3.85 min.Function: 'SetLastError'
4.52 min.Function: 'SetTextCharacterExtra'
Google
Advertise here!