Skip to content

Commit

Permalink
Implement the identity UnaryPixelOp.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Mar 6, 2011
1 parent 8ec2616 commit 5efa745
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Pinta.Core/Effects/UnaryPixelOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public override ColorBgra Apply(ColorBgra color)

public unsafe override void Apply(ColorBgra *dst, ColorBgra *src, int length)
{
//Memory.Copy(dst, src, (ulong)length * (ulong)sizeof(ColorBgra));
for (int i = 0; i < length; i++) {
*dst = *src;
dst++;
src++;
}
}

public unsafe override void Apply(ColorBgra* ptr, int length)
Expand Down

0 comments on commit 5efa745

Please sign in to comment.