IPB

> PutImage (procedure) (Graph unit)
Форум
Загрузка...
 
Час быка
Час быка
Карта Интернета
Internet Map
Яндекс.Метрика

Language:
Русский
English

 PutImage (procedure)     (Graph unit)


Puts a bit image onto the screen.

Declaration

 procedure PutImage(X, Y: Integer; var BitMap; BitBlt: Word);

Target

Real, Protected

Remarks

(X, Y) is the upper left corner of a rectangular region on the screen. BitMap is an untyped parameter that contains the height and width of the region, and the bit image that will be put onto the screen. BitBlt specifies which binary operator will be used to put the bit image onto the screen.

Each constant corresponds to a binary operation. For example:

PutImage(X, Y, BitMap, NormalPut) puts the image stored in BitMap at (X, Y) using the assembly language MOV instruction for each byte in the image.

PutImage(X, Y, BitMap, XORPut) puts the image stored in BitMap at (X, Y) using the assembly language XOR instruction for each byte in the image. This is an often-used animation technique for "dragging" an image around the screen.

PutImage(X, Y, BitMap, NotPut) inverts the bits in BitMap and then puts the image stored in BitMap at (X, Y) using the assembly language MOV for each byte in the image. Thus, the image appears in inverse video of the original BitMap.

Restrictions

Must be in graphics mode.

See Also

Sample Code

 
 К началу страницы 
Тэги: PutImage
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 


-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"