• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image mask rotation interpolation error  RSS feed

steven bales
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I'd like to draw an overlay on an image. The overlay is also an image with a black background and a white foreground. Now the white pixels should be drawn on the image in red. This is possible with the code I posted below. However, the problem arises when rotating the stencil (overlay). I get some interpolation errors from the rotation on the boundaries. I tried to clip them with setClip(), but this turns the background from transparent to white. Any ideas on how to remove those spots? Or maybe a completely other idea of achieving it?


Here I surrounded the errors:

And here's the code.

The stencil:

The image:
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!