JCL Help:DrawBitmap

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Draws a bitmap to a device context.


Pascal

 procedure DrawBitmap(DC: HDC; Bitmap: HBITMAP; X: Integer; Y: Integer; Width: Integer; Height: Integer);


Parameters

Parameters Description
DC: HDC Device context to draw to (e.g. Form1.Canvas.Handle).
Bitmap: HBITMAP Handle of the bitmap to draw.
X: Integer Horizontal position of the upper left corner in the destination DC where to draw the bitmap.
Y: Integer Vertical position of the upper left corner in the destination DC where to draw the bitmap.
Width: Integer Width of the destination bitmap.
Height: Integer Height of the destination bitmap.


Description

DrawBitmap draws the specified bitmap to the specified device context at the position indicated by (X, Y) and with the width and height specified by Width and Height respectively. If the bitmap's size is different from the supplied Width and Height the bitmap is automatically stretched.


About

Unit

JclGraphics


Donator

Charlie Calvert


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