size : 261
uploaded_on : Fri Feb 11 12:10:23 2000
modified_on : Fri Feb 11 12:10:23 2000
title : Bitmap size from handle
org_filename : D:\Upload\BMPSizeFromHandle.txt
author : Ulli Conrad
authoremail : uconrad@gmx.net
description : How to get the size of a bitmap by it's handle
keywords :
tested : D3
submitted_by : The CKB Crew
submitted_by_email : ckb@netalive.org
uploaded_by : ulli
modified_by : ulli
owner : ulli
lang : Delphi
file-type : text/plain
category : delphi_graphics
__END_OF_HEADER__
{ How to get the size of a bitmap by it's handle }
procedure BmpSizeFromObject(hbmp : HBitmap;var width,height : integer);
var
Bitmap : TBitmap;
begin
GetObject(hBmp,Sizeof(Bitmap),@Bitmap);
Width:=Bitmap.bmWidth;
Height:=Bitmap.bmHeight;
end;