193 INT newWidth = oldWidth * nStretchPercentX / 100;
194 INT newHeight = oldHeight * nStretchPercentY / 100;
195 if (oldWidth != newWidth || oldHeight != newHeight)
void SaveImage(LPTSTR lpFileName)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL HasUndoSteps() const
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
static HBITMAP CopyDIBImage(HBITMAP hbm, INT cx=0, INT cy=0)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define ATLTRACE(format,...)
int GetDIBHeight(HBITMAP hBitmap)
SelectionModel selectionModel
BOOL WINAPI InvertRect(_In_ HDC, _In_ LPCRECT)
BOOL HasRedoSteps() const
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)
COLORREF GetBgColor() const
COLORREF GetFgColor() const
void Crop(int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0)
HBITMAP SkewDIB(HDC hDC1, HBITMAP hbm, INT nDegree, BOOL bVertical)
int GetDIBWidth(HBITMAP hBitmap)
HBITMAP CreateDIBWithProperties(int width, int height)
void DrawBackgroundPoly(HDC hDCImage, COLORREF crBg)
void Clear(COLORREF color=0x00ffffff)
void DrawBackgroundRect(HDC hDCImage, COLORREF crBg)
void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0)
void RotateNTimes90Degrees(int iN)
HBITMAP Rotate90DegreeBlt(HDC hDC1, INT cx, INT cy, BOOL bRight)
#define WM_IMAGEMODELIMAGECHANGED
BOOL SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC)
PaletteModel paletteModel
BOOL WINAPI DeleteDC(_In_ HDC)
#define WM_IMAGEMODELDIMENSIONSCHANGED
void NotifyDimensionsChanged()
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
void DrawSelectionBackground(COLORREF rgbBG)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
void NotifyImageChanged()
void Undo(BOOL bClearRedo=FALSE)
void ResetToPrevious(void)
HBITMAP hBms[HISTORYSIZE]
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
BOOL IsImageSaved() const