Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Drawing Windows predefined bitmaps using the LoadBitmap functions
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
GDI+: how to make VFP controls visually shake and shudder
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
GDI+: sending image of FoxPro form to printer
How to copy the image of a form to the Clipboard using Bitmap API functions
How to make a VFP form fading out when released (GDI version)
How to make a VFP form fading out when released (GDI+ version)
How to print FoxPro form
How to print FoxPro form -- II
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Splash Screen for the VFP application
Storing screen shot of a form to bitmap file
Storing screen shot of a form to enhanced metafile (*.emf)
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
BitBlt
..msdn    Add comment     W32 Constants      Translate this page
The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
Code examples:
Splash Screen for the VFP application
How to put a horizontal text scrolling on the form (a news line, marquee)
How to make a VFP form fading out when released (GDI version)
Storing screen shot of a form to bitmap file
How to put a vertical text scrolling on the form (a movie cast)
How to print FoxPro form
How to print FoxPro form -- II
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
GDI+: sending image of FoxPro form to printer
How to copy the image of a form to the Clipboard using Bitmap API functions
Declaration:
BOOL BitBlt(
  HDC hdcDest, // handle to destination DC
  int nXDest,  // x-coord of destination upper-left corner
  int nYDest,  // y-coord of destination upper-left corner
  int nWidth,  // width of destination rectangle
  int nHeight, // height of destination rectangle
  HDC hdcSrc,  // handle to source DC
  int nXSrc,   // x-coordinate of source upper-left corner
  int nYSrc,   // y-coordinate of source upper-left corner
  DWORD dwRop  // raster operation code
);
FoxPro declaration:
DECLARE INTEGER BitBlt IN gdi32;
    INTEGER hDestDC,;
    INTEGER x,;
    INTEGER y,;
    INTEGER nWidth,;
    INTEGER nHeight,;
    INTEGER hSrcDC,;
    INTEGER xSrc,;
    INTEGER ySrc,;
    INTEGER dwRop
Parameters:
hdcDest
[in] Handle to the destination device context.

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

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

nWidth
[in] Specifies the logical width of the source and destination rectangles.

nHeight
[in] Specifies the logical height of the source and the destination rectangles.

hdcSrc
[in] Handle to the source device context.

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

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

dwRop
[in] Specifies a raster-operation code.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Not all devices support the BitBlt function. For more information, see the RC_BITBLT raster capability entry in the GetDeviceCaps function as well as the following functions: MaskBlt, PlgBlt, and StretchBlt.

BitBlt returns an error if the source and destination device contexts represent different devices.
Word Index links for the BitBlt :
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: 2001-11-26 16:03:42
Visited in last 7 days: 157
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.242.205.33)
16 sec.Function: 'GetIconInfo'
30 sec.Function: 'GetMenuContextHelpId'
46 sec.Function: 'AVIStreamGetFrameOpen'
1 min.Function: 'GetCurrentProcessId'
1.23 min.
Function group: 'System Information'
1.48 min.Function: 'CreateFile'
1.75 min.
Function group: 'Authorization'
1.98 min.Function: 'GdipNewInstalledFontCollection'
2.25 min.Function: 'GdipCreateFromHDC'
2.48 min.Function: 'FindWindowEx'
Google
Advertise here!