mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
CtrlLib, Draw: New UHD scaler, fixed FileSel::SelectDir layout
git-svn-id: svn://ultimatepp.org/upp/trunk@8817 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bb71d2bbd4
commit
fa23beeb40
6 changed files with 117 additions and 24 deletions
|
|
@ -68,6 +68,13 @@ void Over(ImageBuffer& dest, Point p, const Image& src, const Rect& srect)
|
|||
DstSrcOp(dest, p, src, srect, AlphaBlend);
|
||||
}
|
||||
|
||||
Image GetOver(const Image& dest, const Image& src)
|
||||
{
|
||||
Image r = dest;
|
||||
Over(r, src);
|
||||
return r;
|
||||
}
|
||||
|
||||
void Fill(ImageBuffer& dest, const Rect& rect, RGBA color)
|
||||
{
|
||||
Rect r = dest.GetSize() & rect;
|
||||
|
|
@ -98,6 +105,11 @@ void Over(Image& dest, Point p, const Image& _src, const Rect& srect)
|
|||
dest = b;
|
||||
}
|
||||
|
||||
void Over(Image& dest, const Image& _src)
|
||||
{
|
||||
Over(dest, Point(0, 0), _src, _src.GetSize());
|
||||
}
|
||||
|
||||
void Fill(Image& dest, const Rect& rect, RGBA color)
|
||||
{
|
||||
ImageBuffer b(dest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue