mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[MSPAINT] Add const to some ImageModel methods
CORE-17931
This commit is contained in:
parent
4331b47c50
commit
ba117350eb
2 changed files with 10 additions and 10 deletions
|
@ -164,17 +164,17 @@ void ImageModel::SaveImage(LPTSTR lpFileName)
|
|||
SaveDIBToFile(hBms[currInd], lpFileName, hDrawingDC);
|
||||
}
|
||||
|
||||
BOOL ImageModel::IsImageSaved()
|
||||
BOOL ImageModel::IsImageSaved() const
|
||||
{
|
||||
return imageSaved;
|
||||
}
|
||||
|
||||
BOOL ImageModel::HasUndoSteps()
|
||||
BOOL ImageModel::HasUndoSteps() const
|
||||
{
|
||||
return undoSteps > 0;
|
||||
}
|
||||
|
||||
BOOL ImageModel::HasRedoSteps()
|
||||
BOOL ImageModel::HasRedoSteps() const
|
||||
{
|
||||
return redoSteps > 0;
|
||||
}
|
||||
|
@ -191,12 +191,12 @@ void ImageModel::StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSk
|
|||
NotifyImageChanged();
|
||||
}
|
||||
|
||||
int ImageModel::GetWidth()
|
||||
int ImageModel::GetWidth() const
|
||||
{
|
||||
return GetDIBWidth(hBms[currInd]);
|
||||
}
|
||||
|
||||
int ImageModel::GetHeight()
|
||||
int ImageModel::GetHeight() const
|
||||
{
|
||||
return GetDIBHeight(hBms[currInd]);
|
||||
}
|
||||
|
|
|
@ -30,12 +30,12 @@ public:
|
|||
void Insert(HBITMAP hbm);
|
||||
void Crop(int nWidth, int nHeight, int nOffsetX = 0, int nOffsetY = 0);
|
||||
void SaveImage(LPTSTR lpFileName);
|
||||
BOOL IsImageSaved();
|
||||
BOOL HasUndoSteps();
|
||||
BOOL HasRedoSteps();
|
||||
BOOL IsImageSaved() const;
|
||||
BOOL HasUndoSteps() const;
|
||||
BOOL HasRedoSteps() const;
|
||||
void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX = 0, int nSkewDegY = 0);
|
||||
int GetWidth();
|
||||
int GetHeight();
|
||||
int GetWidth() const;
|
||||
int GetHeight() const;
|
||||
void InvertColors();
|
||||
void Clear(COLORREF color = 0x00ffffff);
|
||||
HDC GetDC();
|
||||
|
|
Loading…
Reference in a new issue