Pergunta

Question : Is there any better way to implement a function that draws line on the screen other than drawing circles on the input points ?

Details : I am trying to write a function which basically will draw a line.However the line will not be a regular colored line. This line will let user to copy pixels from one image to another trough that line , you can think It like "history brush" or "stamp" on Photoshop . My first thought was just get the points and draw circles on each point. Which is working but not smooth and have some bugs. The first problem is it is not working if user sweep his finger too fast. I thought it would solve problem if i can fill the dots between two points and then draw the line which is kind of work but this time drawing gets very slow. One other problem is that it never looks smooth.

Foi útil?

Solução

Isn't the BitmapShader what you're looking for?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top