得到的image data BYTE * inData
可以通过如下方式渲染成功,比如这个inData是 320*240的,我希望改变图像的大小,从indata得到一个352*288的outdata,应该怎么做?
谢谢。
StretchDIBits(
(HDC) memDC, // Target device HDC
mTargetRect.left, // X sink position
mTargetRect.top, // Y sink position
targetWidth, // Destination width
targetHeight, // Destination height
mSourceRect.left, // X source position
mSourceRect.top, // Y source position
mSourceRect.right - mSourceRect.left, // Source width
mSourceRect.bottom - mSourceRect.top, // Source height
inData, // Image data
(BITMAPINFO *) &mVideoInfo->bmiHeader, // DIB header
DIB_RGB_COLORS, // Type of palette
SRCCOPY); // Simple image copy