Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
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 print FoxPro form
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
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
Vertical Label control
CreateCompatibleBitmap
    Add comment     W32 Constants      Translate this page
Creates a bitmap compatible with the device that is associated with the specified device context.
Code examples:
Storing screen shot of a form to bitmap file
How to print FoxPro form
How to put a horizontal text scrolling on the form (a news line, marquee)
Vertical Label control
How to put a vertical text scrolling on the form (a movie cast)
How to copy the image of a form to the Clipboard using Bitmap API functions
Subclassing CommandButton control to create BackColor property
How to make a VFP form fading out when released (GDI version)
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Declaration:
HBITMAP CreateCompatibleBitmap(
  HDC hdc,        // handle to DC
  int nWidth,     // width of bitmap, in pixels
  int nHeight     // height of bitmap, in pixels
);
FoxPro declaration:
DECLARE INTEGER CreateCompatibleBitmap IN gdi32; 
    INTEGER hdc,; 
    INTEGER nWidth,; 
    INTEGER nHeight
Parameters:
hdc
[in] Handle to a device context.

nWidth
[in] Specifies the bitmap width, in pixels.

nHeight
[in] Specifies the bitmap height, in pixels.
Return value:
If the function succeeds, the return value is a handle to the bitmap.
Usage:
hBitmap = CreateCompatibleBitmap(m.hBaseDC,;
    m.bmpwidth, m.bmpheight)

* select created bitmap in the device context
= SelectObject(m.hDC, m.hBitmap)
My comment:
When created the bitmap can be placed on a device context using SelectObject function. When you no longer need the bitmap, call the DeleteObject function to delete it.
Word Index links for the CreateCompatibleBitmap :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-31 12:00:00
Modified: 2007-06-13 16:09:10
Visited in last 7 days: 99
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.196.47.128)
3 sec.Function: 'InternetTimeToSystemTime'
Function group: 'Internet Functions (WinInet)'
6 sec.
Function group: 'String'
13 sec.Updates
17 sec.Example: 'Creating a device context for the specified printer'
20 sec.Function: 'GetSystemRegistryQuota'
Function group: 'System Information'
24 sec.
Function group: 'Process and Thread'
27 sec.Function: 'AVIFileWriteData'
Function group: 'Windows Multimedia'
34 sec.Function: 'AVIStreamGetFrameOpen'
Function group: 'Windows Multimedia'
39 sec.Function: 'NetScheduleJobDel'
Function group: 'Network Management'
43 sec.Function: 'InternetOpen'
Function group: 'Internet Functions (WinInet)'
Google
Advertise here!