mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
Correct WavyEdges and TornEdges effects for pixel center origin
This commit is contained in:
parent
a37116a0dc
commit
838a632999
|
@ -1683,6 +1683,7 @@ Bitmap updateResult(Bitmap bmpIn, Point[] path)
|
||||||
using (TextureBrush brush = new TextureBrush(bmpIn))
|
using (TextureBrush brush = new TextureBrush(bmpIn))
|
||||||
{
|
{
|
||||||
g.SetHighQuality();
|
g.SetHighQuality();
|
||||||
|
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||||
g.FillPolygon(brush, path);
|
g.FillPolygon(brush, path);
|
||||||
}
|
}
|
||||||
return bmpResult;
|
return bmpResult;
|
||||||
|
@ -1829,6 +1830,7 @@ public static Bitmap TornEdges(Bitmap bmp, int tornDepth, int tornRange, AnchorS
|
||||||
using (TextureBrush brush = new TextureBrush(bmp))
|
using (TextureBrush brush = new TextureBrush(bmp))
|
||||||
{
|
{
|
||||||
g.SetHighQuality();
|
g.SetHighQuality();
|
||||||
|
g.PixelOffsetMode = PixelOffsetMode.Half;
|
||||||
|
|
||||||
Point[] fillPoints = points.Distinct().ToArray();
|
Point[] fillPoints = points.Distinct().ToArray();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue