FillRect method

Fills a rectangle with the sample value, optionally doing an alpha-blend with the destination.

Syntax


void retVal = object.FillRect(pRect, SampVal, bDoOver);

Parameters

pRect [in]

Type: const RECT

Pointer to the rectangle to fill. If NULL, the whole surface is filled.

SampVal [in]

Type: DXPMSAMPLE

Alpha-premultiplied color to use for the fill.

bDoOver [in]

Type: BOOL

Value that indicates whether to alpha-blend the sample with the existing data or to replace the existing data. If TRUE, the samples are alpha-blended over the current data. If FALSE, the samples replace the current data.

Remarks

After this call is made, the current position of the pointer object is undefined. Call IDXARGBReadPtr::MoveToRow, IDXARGBReadPtr::MoveAndGetRunInfo, or IDXARGBReadPtr::MoveToXY to re-establish the pointer location before calling any method that uses the current pointer location.

See also

IDXARGBReadWritePtr::FillAndMove

 

 

Show: