TGopBitBltMasked Class Reference

class TGopBitBltMasked : public TGraphicsOperation

An accelerated graphics operation that copies a rectangular region of one bitmap into another, using a third bitmap as a mask.

The mask must be the same size as the source bitmap. The parts of the source bitmap that are drawn are the areas that are black in the mask.

The data members are all initialised on construction. Objects of this class can be passed to a graphics accelerator's Operation() function either individually, or in a buffer.

TGraphicsAcceleratorCaps::iMaskType

Inherits from

Constructor & Destructor Documentation

TGopBitBltMasked(const TPoint &, TAcceleratedBitmapSpec, TRect &, TAcceleratedBitmapSpec)

TGopBitBltMasked(const TPoint &aDestination,
TAcceleratedBitmapSpecaSourceBitmap,
TRect &aSourceRect,
TAcceleratedBitmapSpecaMask
)[inline]

Constructor with a position, a source bitmap handle, a rectangle and a mask bitmap handle.

Parameters

const TPoint & aDestinationThe destination for the top left hand corner of the portion of the source bitmap.
TAcceleratedBitmapSpec aSourceBitmapA handle to the source bitmap, and other information needed to draw it.
TRect & aSourceRectA rectangle within the source bitmap. Its coordinates are relative to the top left of the bitmap. Defines the part of the source bitmap to be copied.
TAcceleratedBitmapSpec aMaskA handle to the mask bitmap. The parts of the source bitmap that are drawn are the areas that are black in the mask bitmap.

Member Data Documentation

TPoint iDestination

TPoint iDestination

The destination for the top left hand corner of the portion of the bitmap.

TAcceleratedBitmapSpec iMask

TAcceleratedBitmapSpec iMask

A handle to the source bitmap mask.

TAcceleratedBitmapSpec iSourceBitmap

TAcceleratedBitmapSpec iSourceBitmap

A handle to the source bitmap, and other information needed to draw it.

TRect iSourceRect

TRect iSourceRect

A rectangle defining all or a part of the bitmap to be copied.