AlphaBlend() API가 있습니다.
이미지를 알파블렌딩 해 주는 API입니다.
BOOL AlphaBlend(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of upper-left corner
int nYOriginDest, // y-coord of upper-left corner
int nWidthDest, // destination width
int nHeightDest, // destination height
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of upper-left corner
int nYOriginSrc, // y-coord of upper-left corner
int nWidthSrc, // source width
int nHeightSrc, // source height
BLENDFUNCTION blendFunction // alpha-blending function
);
typedef struct _BLENDFUNCTION {
BYTE BlendOp;
BYTE BlendFlags;
BYTE SourceConstantAlpha;
BYTE AlphaFormat;
}BLENDFUNCTION, *PBLENDFUNCTION, *LPBLENDFUNCTION;
Windows NT/2000 or later: Requires Windows 2000 or later.
Windows 95/98/Me: Requires Windows 98 or later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Included as a resource in Msimg32.dll.
이 함수를 사용하시거나 아니면 블렌딩 함수를 만드셔야 될 것 같네요
궁금 님이 쓰신 글 :
:
:
:
:
:
:
:
더블 버퍼링을 이용해서 폼에다가 이미지를 뿌리고 있습니다.
:
:
거기에 그림판처럼 마우스로 움직여서 선을 그리고 할때는 XOR을 이용하여서 잘 사용하고 있는데..
:
:
특정부분을 마우스로 드래그했을때 선택된 부분을 반투명하게 보이게 할려면 어떻게 해야 하나요?
:
:
기존의 그림은 두고 그 위에 반투명하게 선택된것처럼 보이게 할려면....어떻게 하는지...
:
:
이해가 되셨는지 모르겠네요...
:
:
이걸...알파블렌딩이라고 해야 하나요?
:
:
: