mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:36:42 +00:00
[MSPAINT] Refactor loading/saving image file (#2686)
- Add DoLoadImageFile, CreateWhiteDIB, and CMainWindow::ConfirmSave functions. - Replace LoadDIBFromFile function with DoLoadImageFile. - Fix the empty file loading. - Delete UpdateApplicationProperties function. - Rewrite SaveDIBToFile function. CORE-16982, CORE-16979
This commit is contained in:
parent
125020c23f
commit
036206a1c3
8 changed files with 186 additions and 225 deletions
|
@ -161,8 +161,7 @@ void ImageModel::Crop(int nWidth, int nHeight, int nOffsetX, int nOffsetY)
|
|||
|
||||
void ImageModel::SaveImage(LPTSTR lpFileName)
|
||||
{
|
||||
SaveDIBToFile(hBms[currInd], lpFileName, hDrawingDC, &fileTime, &fileSize, fileHPPM, fileVPPM);
|
||||
imageSaved = TRUE;
|
||||
SaveDIBToFile(hBms[currInd], lpFileName, hDrawingDC);
|
||||
}
|
||||
|
||||
BOOL ImageModel::IsImageSaved()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue