mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Fixed Painting gradient stroke
git-svn-id: svn://ultimatepp.org/upp/trunk@788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
aed483f15a
commit
4572d52900
2 changed files with 7 additions and 7 deletions
|
|
@ -107,24 +107,24 @@ void PaintingPainter::StrokeOp(double width, const Image& image, const Matrix2D&
|
|||
void PaintingPainter::StrokeOp(double width, double x1, double y1, const RGBA& color1, double x2, double y2, const RGBA& color2, int style)
|
||||
{
|
||||
Put(PAINTING_STROKE_GRADIENT);
|
||||
Put(color1);
|
||||
Put(color2);
|
||||
Put(style);
|
||||
Putf(width);
|
||||
Putf(x1, y1);
|
||||
Put(color1);
|
||||
Putf(x2, y2);
|
||||
Put(color2);
|
||||
Put(style);
|
||||
}
|
||||
|
||||
void PaintingPainter::StrokeOp(double width, double fx, double fy, const RGBA& color1, double x, double y, double r, const RGBA& color2, int style)
|
||||
{
|
||||
Put(PAINTING_STROKE_RADIAL);
|
||||
Put(color1);
|
||||
Put(color2);
|
||||
Put(style);
|
||||
Putf(width);
|
||||
Putf(fx, fy);
|
||||
Put(color1);
|
||||
Putf(x, y);
|
||||
Putf(r);
|
||||
Put(color2);
|
||||
Put(style);
|
||||
}
|
||||
|
||||
void PaintingPainter::ClipOp()
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace agg
|
|||
}
|
||||
static int xi(int v) { return v; }
|
||||
static int yi(int v) { return v; }
|
||||
static int upscale(double v) { STIMING("upscale"); return iround(v * poly_subpixel_scale); }
|
||||
static int upscale(double v) { return iround(v * poly_subpixel_scale); }
|
||||
static int downscale(int v) { return v; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue