JCL Help:BitmapToIcon@HBITMAP@HBITMAP@Integer@Integer

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a bitmap to an icon.


Pascal

 function BitmapToIcon(Bitmap: HBITMAP; cx: Integer; cy: Integer): HICON; overload;
function BitmapToIcon(Bitmap: HBITMAP; Mask: HBITMAP; cx: Integer; cy: Integer): HICON; overload;


Parameters

Parameters Description
Bitmap: HBITMAP Handle of the bitmap to convert.
cx: Integer Width of the bitmap.
cy: Integer Height of the bitmap.


Return Value

Handle to the icon or 0 on failure. Caller is responsible for eventually releasing the icon resource by calling DestroyIcon.


Description

BitmapToIcon converts the specified bitmap (identified by handle) to an icon.


About

Unit

JclGraphics


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page