ultimatepp/uppdev/Glyph/FDrawPut.cpp
cxl 8a49c504cc .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@6061 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-05-13 07:48:02 +00:00

30 lines
739 B
C++

#include "glyph.h"
void FDraw::SysDrawImageOp(int x, int y, const Image& img, const Rect& src, Color color)
{
Point p = Point(x, y) + state.Top().offset;
Rect sr = src + p;
const Vector<Rect>& clip = state.Top().clip;
for(int i = 0; i < clip.GetCount(); i++) {
Rect cr = clip[i] & r;
}
}
void FDraw::SysDrawImageOp(int x, int y, const Image& img, Color color)
{
SysDrawImageOp(x, y, img, img.GetSize(), color);
}
void FDraw::DrawRectOp(int x, int y, int cx, int cy, Color color)
{
RectC r(x, y, cx, cy);
r += state.Top().offset;
const Vector<Rect>& clip = state.Top().clip;
for(int i = 0; i < clip.GetCount(); i++) {
Rect cr = clip[i] & r;
if(!cr.IsEmpty())
PutRect(cr, color);
}
}