void IconDes::PenSet(Point p, dword flags) { return; p -= (pen - 1) / 2; Over(CurrentImage(), p, IconDesImg::Get(IconDesImg::I_pen1 + minmax(pen - 1, 0, 5)), Size(pen, pen)); RefreshPixel(p, pen, pen); }
BOOL CTimeout::TimeoutReset( DWORD dwCurr ) { DWORD dwTimeout = Over( dwCurr ); if( dwTimeout > 0 ) { Reset( dwCurr, dwTimeout ); return TRUE; } return FALSE; }
void InterpolateImage(Image& img, const Rect& _rc) { Rect rc = _rc & img.GetSize(); Image m = Crop(img, rc); TimeStop tm; Image imp = CreateImage(rc.GetSize(), Null); Over(imp, Point(0, 0), m, m.GetSize()); Progress pi("Interpolating..."); for(int qq = 0; qq < 2000; qq++) { InterpolateFilter f; f.todo = 0; imp = Filter(imp, f); Over(imp, Point(0, 0), m, m.GetSize()); if(f.todo == 0) break; if(pi.SetCanceled(qq, 2000)) break; } Copy(img, rc.TopLeft(), imp, imp.GetSize()); }
Image IconDes::MakeIconDesCursor(const Image& arrow, const Image& cmask) { RGBA c = CurrentColor(); c.a = 255; Image ucmask = Unmultiply(cmask); ImageBuffer ib(ucmask.GetSize()); const RGBA *m = ~ucmask; RGBA *t = ~ib; RGBA *e = ib.End(); while(t < e) { *t = c; t->a = m->a; m++; t++; } Image cm(ib); Image r = arrow; Over(r, Point(0, 0), Premultiply(cm), r.GetSize()); return r; }
void CSuperMove::Update() { if (!gMap) { return /*Clear()*/; } if (m_bHungUp) { if (!gHero->IsMoving()) { m_bHungUp = false; StartMove(m_pPath, m_nErrorDistance); } return; } if (!gHero->IsTransfering() && !m_bOver && !m_bPause) { if ((*m_itCurAction)->CheckFailed()) { return Clear(); } if ((*m_itCurAction)->CheckDone()) { if (!HasNextAction()) { Over(); } else if (nFrameCounter++ == 5) { NextAction(); nFrameCounter = 0; } } } }
bool MOUSE::PressInRect(RECT dest) { return ClickLeft() && Over(dest); }
void SImageDraw1::PutImage(Point p, const Image& m, const Rect& src) { Over(ib, p, m, src); }
Image OverLtRed(const Image& m) { Image red = CreateImage(m.GetSize(), Blend(LtRed, SColorPaper)); Over(red, Point(0, 0), m, m.GetSize()); return red; }
void CTimer::operator()( double fInterval ) { Set( (float)fInterval ); while( !Over() ); }
void CTimer::operator()( void ) { while( !Over() ); }
bool OverAll(float phi, float eta) { return (Over(phi, eta) || OverQCD(phi, eta)); }
Image sImageAdd::Make() const { Image dest = i1; Over(dest, Point(0, 0), i2, i2.GetSize()); return dest; }