Questions tagged [eraser]

Eraser tool to clear the pixels (on touching the screen) as it is dragged over canvas.

Eraser tool to clear the pixels (on touching the screen) as it is dragged over canvas.

36 questions
19
votes
5 answers

Implementing an eraser in an Android drawing app - black trail and then transparent

I have an drawing app for Android and I am currently trying to add a real eraser to it. Before, I had just used white paint for an eraser, but that won't do anymore since now I allow background colors and images. I do this by having an image view…
Scott
  • 2,557
  • 5
  • 26
  • 32
9
votes
2 answers

How to implement eraser feature for flutter drawing app

There is a video about creating a drawing app by flutter (YouTube) which support to draw lines / points when user tapping on screen but I can't find a feature / way to erase what user had drawn like Android native (like here) especially for lines. I…
Anson Woo
  • 91
  • 4
8
votes
3 answers

Canvas Eraser is drawing a black line

I have googled this problem and had various solutions proposed. However, none worked for me. I have a Drawing Canvas in an app. The background of the canvas is set to a png Image in the Activity which uses the custom view (drawView); Bundle extras =…
James Cooke
  • 1,221
  • 1
  • 14
  • 27
3
votes
0 answers

Using an eraser over image in Flutter

I'm making a kind-of painting app that has you paint over a background image. There's a couple of tools like pen and then there's eraser. Ideally, we would just paint over the background color, but it's an image. We had the idea of removing the…
Benjamin
  • 5,783
  • 4
  • 25
  • 49
3
votes
1 answer

Eraser effect using canvas

I have a custom view class which extends the view. I am using the over-ridden onDraw method to doodle on the canvas. I have a list of a POJO which includes Path and Paint with the help of which I can re-create the old paths drawn, something like…
PunK _l_ RuLz
  • 621
  • 6
  • 20
2
votes
0 answers

flutter painting on canvas and erase drawing

i am working on a canvas drawing module in to it i need to erase user drawing basic funda is adding image in canvas user can draw on image using pencil (i.e black color) now user can erase this black color on erase function (i.e clear user drawing…
Developer
  • 333
  • 2
  • 16
2
votes
1 answer

How to delete a drawn line on a form?

Actually there are some similar questions about this topic but I couldn't see the answer what I am looking for. For example I have drawn 2 lines on windows form and I want to delete one of them and keep the other, how can I do that?…
etly
  • 31
  • 1
  • 1
  • 2
2
votes
2 answers

How to delete shapes drawn on an Image

I am developing a small Paint tool. And I am able to load and draw Lines or Circles and other shapes on an image. Also I have an eraser tool to erase the shapes that I have drawn. This is code for that: …
Saikiran Gosikonda
  • 928
  • 1
  • 11
  • 29
1
vote
1 answer

How to freehand erase on a SKCanvasView?

I am trying to make a drawing app in Xamarin.Forms. I am able to draw paths. My problem is, how can I remove part of a path, when user try to erase on the drawing. I have tried the following: if (IsEraseClicked) { switch (args.Type) { …
1
vote
1 answer

How to create an Eraser for CALayer.SubLayer Using a CAShapeLayer in Swift

I have been looking everywhere for the answer to a question that has been asked a ton of times. I have spent hours looking through SO and Google. There has to be an answer that isn't going to take a mountain moving effort. I am working on a vector…
jforward5
  • 93
  • 1
  • 12
1
vote
0 answers

Erase Canvas SandLab.java

I am creating a game on java, and I would like to reset the whole canvas after painting on the screen. I would like to do this by adding a button on the side of the game, but I am not sure where to add this in my code. The general format of the code…
1
vote
1 answer

Erasing portion of a stoke in UWP

I am using the new Ink technology for Windows 10, by using InkCanvas/InkPresenter in UWP. Ink rendering is really nice, except I can't seem to be able to erase only a portion of a stroke. I am looking at OneNote, that I am assuming is using the same…
ClaudiaWey
  • 167
  • 9
1
vote
1 answer

how to draw and erase on touch in android

I have got no answer for this question on the internet , I'm trying to paint with different colors which the user can choose from , the problem is this drawview is not drawing anything and i don't know how o ad an on touch eraser to erase only the…
rgl
  • 45
  • 8
1
vote
0 answers

Windows Forms Surface Pen Eraser Detection

I'm trying to detect whether the current mouse (pen) press on a surface pro pen was from the nib or the eraser. I realise this can be done relatively easy in WPF/ink, is there any way to detect this using standard win forms?
Rob
  • 1,687
  • 3
  • 22
  • 34
1
vote
0 answers

Slow performance on ipad erasing image

I have an iOS app that lets me erase an image with touch. It runs fine on iphone, but it lags a lot on ipad air. It uses ~40MB of memory on iphone, but ~200MB on ipad. Any ideas? - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { …
iamarnold
  • 229
  • 3
  • 12
1
2 3