Changeset View
Changeset View
Standalone View
Standalone View
imagelib/transforms/kpTransformCrop_ImageSelection.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 163 | { | |||
---|---|---|---|---|---|
164 | setTransparentImage = m_imageIfFromSelectionDoesntHaveOne; | 164 | setTransparentImage = m_imageIfFromSelectionDoesntHaveOne; | ||
165 | #if DEBUG_KP_TOOL_CROP | 165 | #if DEBUG_KP_TOOL_CROP | ||
166 | qCDebug(kpLogImagelib) << "\tno pixmap in sel - get it; rect=" | 166 | qCDebug(kpLogImagelib) << "\tno pixmap in sel - get it; rect=" | ||
167 | << setTransparentImage.rect () | 167 | << setTransparentImage.rect () | ||
168 | << endl; | 168 | << endl; | ||
169 | #endif | 169 | #endif | ||
170 | } | 170 | } | ||
171 | 171 | | |||
172 | #if 0 | | |||
173 | kpPixmapFX::paintMaskTransparentWithBrush (&newDocImage, | | |||
174 | QPoint (0, 0), | | |||
175 | m_fromSelectionPtr->shapeBitmap ()); | | |||
176 | #endif | | |||
177 | | ||||
178 | kpPixmapFX::paintPixmapAt (&newDocImage, | 172 | kpPixmapFX::paintPixmapAt (&newDocImage, | ||
179 | QPoint (0, 0), | 173 | QPoint (0, 0), | ||
180 | setTransparentImage); | 174 | setTransparentImage); | ||
181 | 175 | | |||
182 | 176 | | |||
183 | document ()->setImageAt (newDocImage, QPoint (0, 0)); | 177 | document ()->setImageAt (newDocImage, QPoint (0, 0)); | ||
184 | document ()->selectionDelete (); | 178 | document ()->selectionDelete (); | ||
185 | 179 | | |||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |