CopyAndMoveBoth method
Copies the specified number of samples from the current position of the source surface to the current position of the output surface.
Syntax
void retVal = object.CopyAndMoveBoth(pScratchBuffer, pSrc, cSamples, bIsOpaque);
Parameters
pScratchBuffer [in]
Type: DXBASESAMPLEPointer to a buffer that can be used by the method. The initial contents of the buffer are ignored, and the contents are undefined when the call returns the buffer. The buffer must be at least [cSamples * sizeof(DXBASESAMPLE)] bytes in size. If the surface pixel format is either ARGB32 or PMARGB32, this buffer is not required and pScratchBuffer can be NULL.
pSrc [in]
Type: IDXARGBReadPtrSource surface read pointer to copy from.
cSamples [in]
Type: unsigned longNumber of samples to copy.
bIsOpaque [in]
Type: BOOLValue that specifies whether the samples are opaque or transparent. If TRUE, the caller guarantees that all the samples being copied have an alpha channel value of 255. In some cases this enables faster code performance. If you are not sure that all samples are opaque, specify FALSE.
Remarks
After a call to this method, the positions of both the source and destination surfaces are advanced by cSamples.
See also
Reference