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)
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:
How to put a horizontal text scrolling on the form (a news line)
How to put a vertical text scrolling on the form (a movie cast)
How to make a VFP form fading out when released (GDI version)
Vertical Label control
Storing screen shot of a form to bitmap file
How to print FoxPro form
Subclassing CommandButton control to create BackColor property
How to copy the image of a form to the Clipboard using Bitmap API functions
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: 77
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (184.73.74.47)
48.37 min.Function: 'Shell_GetImageLists'
48.47 min.Function: 'CreateDesktop'
2.81 hrs.Example: 'How to retrieve information about a cache entry (Internet Explorer)'
 Example: 'GDI+: loading image file, drawing on it, saving the result to another file'
4.46 hrs.Example: 'How to change the name and the size of the font in the MessageBox dialog'
4.47 hrs.Function: 'GdipSetPageScale'
Function group: 'GDI+ Graphics'
12.59 hrs.Function: 'GetFileAttributes'
 Example: 'How to access a file using not its name but an alias (hard link)'
16.19 hrs.Example: 'GDI+: rotating images using matrix transformations'
 Example: 'How to obtain Content-Type value for a file type from the System Registry'
Google
Advertise here!