mirror of
https://github.com/reactos/reactos.git
synced 2026-06-04 18:30:41 +08:00
[MSPAINT] Implement skew (#4362)
- Add SkewDIB helper function in dib.cpp. - Implement Stretch and Skew feature by SelectionModel::StretchSkew and ImageModel::StretchSkew. - Move ColorKeyedMaskBlt function. CORE-16634
This commit is contained in:
committed by
GitHub
parent
2d90919047
commit
dfd06ee8fc
@@ -695,8 +695,16 @@ LRESULT CMainWindow::OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
|
||||
{
|
||||
if (stretchSkewDialog.DoModal(mainWindow.m_hWnd))
|
||||
{
|
||||
imageModel.StretchSkew(stretchSkewDialog.percentage.x, stretchSkewDialog.percentage.y,
|
||||
stretchSkewDialog.angle.x, stretchSkewDialog.angle.y);
|
||||
if (::IsWindowVisible(selectionWindow))
|
||||
{
|
||||
selectionModel.StretchSkew(stretchSkewDialog.percentage.x, stretchSkewDialog.percentage.y,
|
||||
stretchSkewDialog.angle.x, stretchSkewDialog.angle.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageModel.StretchSkew(stretchSkewDialog.percentage.x, stretchSkewDialog.percentage.y,
|
||||
stretchSkewDialog.angle.x, stretchSkewDialog.angle.y);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user