Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
How to print a bitmap file
How to print FoxPro form
StretchDIBits
..msdn    Add comment     W32 Constants      Translate this page
The StretchDIBits function copies the color data for a rectangle of pixels in a DIB to the specified destination rectangle.
Code examples:
How to print FoxPro form
How to print a bitmap file
Declaration:
int StretchDIBits(
  HDC hdc,                      // handle to DC
  int XDest,                    // x-coord of dest. upper-left
  int YDest,                    // y-coord of dest. upper-left
  int nDestWidth,               // width of dest. rectangle
  int nDestHeight,              // height of dest. rectangle
  int XSrc,                     // x-coord of src upper-left
  int YSrc,                     // y-coord of src upper-left
  int nSrcWidth,                // width of src rectangle
  int nSrcHeight,               // height of src rectangle
  CONST VOID *lpBits,           // bitmap bits
  CONST BITMAPINFO *lpBitsInfo, // bitmap data
  UINT iUsage,                  // usage options
  DWORD dwRop                   // raster operation code
);
FoxPro declaration:
DECLARE INTEGER StretchDIBits IN gdi32;
    INTEGER   hdc,;
    INTEGER   XDest,;
    INTEGER   YDest,;
    INTEGER   nDestWidth,;
    INTEGER   nDestHeight,;
    INTEGER   XSrc,;
    INTEGER   YSrc,;
    INTEGER   nSrcWidth,;
    INTEGER   nSrcHeight,;
    INTEGER   lpBits,;
    STRING  @ lpBitsInfo,;
    INTEGER   iUsage,;
    INTEGER   dwRop

Parameters:
hdc
[in] Handle to the destination device context.

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

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

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

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

XSrc
[in] Specifies the x-coordinate, in pixels, of the source rectangle in the DIB.

YSrc
[in] Specifies the y-coordinate, in pixels, of the source rectangle in the DIB.

nSrcWidth
[in] Specifies the width, in pixels, of the source rectangle in the DIB.

nSrcHeight
[in] Specifies the height, in pixels, of the source rectangle in the DIB.

lpBits
[in] Pointer to the DIB bits, which are stored as an array of bytes.

lpBitsInfo
[in] Pointer to a BITMAPINFO structure that contains information about the DIB.

iUsage
[in] Specifies whether the bmiColors member of the BITMAPINFO structure was provided and, if so, whether bmiColors contains explicit red, green, blue (RGB) values or indexes.

dwRop
[in] Specifies how the source pixels, the destination device context"s current brush, and the destination pixels are to be combined to form the new image.
Return value:
If the function succeeds, the return value is the number of scan lines copied. If the function fails, the return value is GDI_ERROR (0xFFFF).
Word Index links for the StretchDIBits :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-08 19:30:56
Modified: 2003-05-16 10:29:16
Visited in last 7 days: 24
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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.198.141)
7 sec.Function: 'SQLDriverConnect'
20 sec.Function: 'SetEnvironmentVariable'
29 sec.Function: 'WinHttpReadData'
43 sec.Function: 'SetComputerName'
1.13 min.Function: 'SHBrowseForFolder'
1.25 min.Function: 'SystemParametersInfo'
1.4 min.Function: 'WNetCloseEnum'
Google
Advertise here!