• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image mask rotation interpolation error

 
steven bales
Greenhorn
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?

Thanks!

Here I surrounded the errors:




And here's the code.



The stencil:


The image:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic