Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
Converting image file to .ICO file
How to convert a bitmap file to monochrome format (1 bpp)
How to print a bitmap file
How to print FoxPro form
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
Vertical Label control
GetDIBits
..msdn    Add comment     W32 Constants      Translate this page
The GetDIBits function retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format.
Code examples:
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
Vertical Label control
How to print FoxPro form
Subclassing CommandButton control to create BackColor property
How to print a bitmap file
How to convert a bitmap file to monochrome format (1 bpp)
Converting image file to .ICO file
Declaration:
int GetDIBits(
  HDC hdc,           // handle to DC
  HBITMAP hbmp,      // handle to bitmap
  UINT uStartScan,   // first scan line to set
  UINT cScanLines,   // number of scan lines to copy
  LPVOID lpvBits,    // array for bitmap bits
  LPBITMAPINFO lpbi, // bitmap data buffer
  UINT uUsage        // RGB or palette index
);
FoxPro declaration:
DECLARE INTEGER GetDIBits IN gdi32;
    INTEGER   hdc,;
    INTEGER   hbmp,;
    INTEGER   uStartScan,;
    INTEGER   cScanLines,;
    INTEGER   lpvBits,;
    STRING  @ lpbi,;
    INTEGER   uUsage
Parameters:
hdc
[in] Handle to the device context.

hbmp
[in] Handle to the bitmap. This must be a compatible bitmap (DDB).

uStartScan
[in] Specifies the first scan line to retrieve.

cScanLines
[in] Specifies the number of scan lines to retrieve.

lpvBits
[out] Pointer to a buffer to receive the bitmap data.

lpbi
[in/out] Pointer to a BITMAPINFO structure that specifies the desired format for the DIB data.

uUsage
[in] Specifies the format of the bmiColors member of the BITMAPINFO structure.
Return value:
If the lpvBits parameter is non-NULL and the function succeeds, the return value is the number of scan lines copied from the bitmap.
My comment:
DDB = Device-Dependent Bitmap.

DIB = Device-Independent Bitmap: is not a GDI graphic object; cannot be selected into a device context; can be rendered to a device context directly.
Word Index links for the GetDIBits :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-11-05 20:56:27
Modified: 2001-11-26 16:03:56
Visited in last 7 days: 50
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.156.67.122)
14 sec.Function: 'CloseWindow'
26 sec.Function: 'UuidFromString'
39 sec.Function: 'OpenProcessToken'
53 sec.Function: 'WindowFromDC'
1.13 min.Function: 'capCreateCaptureWindow'
1.35 min.Function: 'GdipSetPageScale'
1.53 min.Function: 'CertFreeCertificateContext'
1.75 min.Function: 'CryptUnprotectData'
1.95 min.Function: 'EnumProcesses'
2.13 min.Function: 'GetClipboardOwner'
Google
Advertise here!