bool RenderWindow::CopyToImage(AbstractImage* image, const Vector3ui& dstPos) const { #if NAZARA_RENDERER_SAFE if (!m_context) { NazaraError("Window has not been created"); return false; } #endif return CopyToImage(image, Rectui(Vector2ui(0U), GetSize()), dstPos); }
bool usImage::Rotate(double theta, bool mirror) { wxImage *pImg = 0; CalcStats(); CopyToImage(&pImg, Min, Max, 1.0); wxImage mirrored = *pImg; if (mirror) { mirrored = pImg->Mirror(false); } wxImage rotated = mirrored.Rotate(theta, wxPoint(0,0)); CopyFromImage(rotated); delete pImg; return false; }