mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:33:07 +00: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:
parent
2d90919047
commit
dfd06ee8fc
9 changed files with 165 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue