Method function IGDIPlus.TGPBitmap.FromHBITMAP(HBITMAP;HPALETTE) : TGPBitmap

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: TGPBitmap

Contents

Syntax

Delphi:

function FromHBITMAP( hbm : HBITMAP, hpal : HPALETTE ) : TGPBitmap;

C++ Builder:

TGPBitmap __fastcall FromHBITMAP( HBITMAP hbm, HPALETTE hpal );

Visual C++ (MFC):

CTGPBitmap FromHBITMAP( HBITMAP hbm, HPALETTE hpal );

Summary

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.

Description

Call this method to create a Bitmap object based on a handle to a Windows Microsoft Windows Graphics Device Interface (GDI) bitmap and a handle to a GDI palette. Remarks 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 FromHBITMAP method a GDI bitmap or a GDI palette that is currently (or was previously) selected into a device context.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox