Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Bitmap
..msdn
GdipBitmapGetPixel
GdipBitmapSetPixel
GdipBitmapSetResolution
GdipCloneBitmapArea
GdipCreateBitmapFromGdiDib
GdipCreateBitmapFromGraphics
GdipCreateBitmapFromHBITMAP
GdipCreateBitmapFromHICON
GdipCreateHBITMAPFromBitmap
GdipCreateHICONFromBitmap
Code examples:
Custom GDI+ class
GdipCreateBitmapFromHBITMAP
..msdn    Add comment     W32 Constants      Translate this page
Creates a Bitmap object based on a handle to a Windows Microsoft® Windows® Graphics Device Interface (GDI) bitmap and a handle to a GDI palette.
Code examples:
Custom GDI+ class
Declaration:
 
GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(
    HBITMAP hbm,
    HPALETTE hpal,
    GpBitmap** bitmap
)
 
 
FoxPro declaration:
 
DECLARE INTEGER GdipCreateBitmapFromHBITMAP IN gdiplus;
    INTEGER   hbm,;
    INTEGER   hpal,;
    INTEGER @ hbitmap
 
 
Parameters:
hbm
[in] Handle to a GDI bitmap.

hpal
[in] Handle to a GDI palette used to define the bitmap colors if hbm is not a device-independent bitmap (DIB).

bitmap
[out] Handle to the GDI+ bitmap object.
Return value:
Returns 0 on success.
My comment:
You are responsible for deleting the GDI bitmap and the GDI palette. However, you should not delete the GDI bitmap or the GDI palette until after the GDI+ Bitmap object is deleted or goes out of scope.

Do not pass to the GDI+ Bitmap constructor a GDI bitmap or a GDI palette that is currently (or was previously) selected into a device context.
Word Index links for the GdipCreateBitmapFromHBITMAP :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2004-07-15 11:27:26
Modified: 2004-07-15 11:32:07
Visited in last 7 days: 10
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 (23.20.86.177)
3 sec.Function: 'CeFindFirstFile'
6 sec.Function: 'GetEventLogInformation'
10 sec.Function: 'GetModuleBaseName'
14 sec.Function: 'SetDlgItemInt'
17 sec.Function: 'LsaGetLogonSessionData'
20 sec.Function: 'WTSRegisterSessionNotification'
24 sec.Function: 'ReadFile'
28 sec.Function: 'InternetCheckConnection'
32 sec.Function: 'CloseServiceHandle'
36 sec.Function: 'CreateJobObject'
Google
Advertise here!