128 ColorKeyedMaskBlt(
HDC hdcDest,
int nXDest,
int nYDest,
int nWidth,
int nHeight,
HDC hdcSrc,
int nXSrc,
int nYSrc,
HBITMAP hbmMask,
int xMask,
int yMask,
DWORD dwRop,
COLORREF keyColor);
142 StretchBlt(hDCImage,
m_rcDest.
left,
m_rcDest.
top,
RECT_WIDTH(
m_rcDest),
RECT_HEIGHT(
m_rcDest),
m_hDC, 0, 0,
GetDIBWidth(
m_hBm),
GetDIBHeight(
m_hBm),
SRCCOPY);
268 ptDeltaUsed.
x = ptDelta.
x;
269 ptDeltaUsed.
y = ptDelta.
y;
279 ptDeltaUsed.
x = ptDelta.
x;
291 ptDeltaUsed.
y = ptDelta.
y;
296 ptDeltaUsed.
y = ptDelta.
y;
306 ptDeltaUsed.
x = ptDelta.
x;
317 ptDelta.
x -= ptDeltaUsed.
x;
318 ptDelta.
y -= ptDeltaUsed.
y;
void DrawSelectionStretched(HDC hDCImage)
void RotateNTimes90Degrees(int iN)
void DrawFramePoly(HDC hDCImage)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define ACTION_RESIZE_TOP_LEFT
void PushToPtStack(LONG x, LONG y)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
GLint GLint GLint GLint GLint x
#define ACTION_RESIZE_RIGHT
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
void CalculateContents(HDC hDCImage)
BOOL ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, HBITMAP hbmMask, int xMask, int yMask, DWORD dwRop, COLORREF keyColor)
int GetDIBHeight(HBITMAP hBitmap)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
int GetDIBWidth(HBITMAP hBitmap)
#define ACTION_RESIZE_BOTTOM_LEFT
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
HBITMAP CreateDIBWithProperties(int width, int height)
#define ACTION_RESIZE_TOP_RIGHT
void DrawBackgroundPoly(HDC hDCImage, COLORREF crBg)
void Poly(HDC hdc, POINT *lpPoints, int nCount, COLORREF fg, COLORREF bg, int thickness, int style, BOOL closed, BOOL inverted)
void ModifyDestRect(POINT &ptDelta, int iAction)
void DrawBackgroundRect(HDC hDCImage, COLORREF crBg)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define ACTION_RESIZE_TOP
#define ACTION_RESIZE_LEFT
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void SetSrcRectSizeToZero()
BOOL WINAPI DeleteDC(_In_ HDC)
void InsertFromHBITMAP(HBITMAP hBm)
BOOL IsSrcRectSizeNonzero()
GLint GLint GLint GLint GLint GLint y
void DrawSelection(HDC hDCImage, COLORREF crBg=0, BOOL bBgTransparent=FALSE)
void CalculateBoundingBoxAndContents(HDC hDCImage)
void ScaleContentsToFit()
#define ACTION_RESIZE_BOTTOM
BOOL WINAPI MaskBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ HBITMAP, _In_ int, _In_ int, _In_ DWORD)
void NotifyRefreshNeeded()
void DrawTextToolText(HDC hDCImage, COLORREF crFg, COLORREF crBg, BOOL bBgTransparent=FALSE)
#define ACTION_RESIZE_BOTTOM_RIGHT
#define HEAP_GENERATE_EXCEPTIONS
#define WM_SELECTIONMODELREFRESHNEEDED
void ResetToPrevious(void)
#define HeapFree(x, y, z)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
CSelectionWindow selectionWindow
void SetSrcAndDestRectFromPoints(const POINT &ptFrom, const POINT &ptTo)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)