[iPhone] Creating an "eraser" tool kind of like in a paint program.

I was wondering if any of you have implemented an eraser tool in code using Quartz 2D? I have tried many a thing and looked high and low. Someone mentioned switching to GL ES. Someone who wrote some working paint code for the Mac OS (i.e. not explicitly the iPhone) didn't implement an eraser but alluded that you could clip the CGContextClearRect() method to clear a non-square shape. I can get by using a square eraser with just CGContextClearRect() without clipping but a round eraser (or even a transparent stamp or stamp through to the background/underlying layer) would be a nicety.
Can CGContextClearRect() be prefaced and clipped with, say, CGContextClipToMask()? I cannot seem to get it to work as the one guy suggested.
I guess I could always mask the background and copy the revealed area from the background but that seems cheap.
Regards.

You will also find links to many
free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
All versions of After Effects can do it. There is an After Effects forum for asking questions pertaining to that product.
Cheers
Eddie
PremiereProPedia   (
RSS feed)
- Over 300 frequently answered questions
- Over 250 free tutorials
- Maintained by editors like
you
Forum FAQ

Similar Messages

  • Adobe CS5 Eraser tool won't work

    My eraser tool won't work on any adjustment layers I add. It will erase on a background copy but not on a curves or black and white layer. It's strange because my brush tools are working and the eraser tool has been working up until now. It's not even showing up on the thumbnail image and my opacity is set to 100 % and I have tried pencil, block and brush tool. The burn and doge tools won't work either.
    I have tried resetting my tools under the drop down menu awa resetting tool preferences, preferences and restarting the program whilst holding down ctrl, alt, shift. I am working on a Microsoft Windows 7 (OS). Everything else seems to be working okay.
    Any help or suggestions would greatly be appreciated
    Tamzyn

    If you paint Black on the Layer Mask, it will mask the effect of the adjustment in the Adjustment Layer.  Likewise if you paint White on the Layer Mask it will cause the adjustment to take full effect.  Grays in between will cause the adjustment to be only partially applied in that area.
    If you happen to have Black selected for the background color, the Eraser tool will act like a brush painting black (and thus hiding the adjustment) when you use it on the Layer Mask.  That's probably what you did to see the Eraser tool work on an Adjustment Layer in the past.
    As stated above, most folks use the brush tool for working on Layer Masks.
    -Noel

  • How can someone use a stolen iphone? does erasing the phone (which I feel like I should do) make it easier for the thief to use the iphone?  If I don't erase it, it doesn't seem like anyone should be able to use the phone because of my password.

    how can someone use a stolen iphone? does erasing the phone (which I feel like I should do) make it easier for the thief to use the iphone?  If I don't erase it, it doesn't seem like anyone should be able to use the phone because of my password. Also, is it possible to retrieve anything that has been sent to the phone (i.e. text messages) since it was stolen through icloud? The "find my iphone" app says the device is offline but it rings when I call my number -- any idea how that would be the case? Thanks!!

    You have a password, so good move on your part.  Whether you erase it or the thief does, they still get to use the iPhone as theirs.  Which is more important (pick one), protecting your data or punishing the thief?
    Ringing occurs at the carrier.  Chances are you're going to voicemail after only two or three rings.  If you have an iCloud backup also a good move.  Re-read my question in the first paragraph.

  • How do I create new photo albums in iphone? why isn't it organized like in the iPad?

    How do I create new photo albums in iphone? why isn't it organized like in the iPad?

    You can't create new albums on the iPad either. The user interface looks different, but the functionality is essentially the same.
    The route is to create new albums on the desktop, and then sync via iTunes.

  • Eraser tool in Photoshop CS4 acts as if it is transparent when on brush or pencil mode. Block acts like its not transparent at all but there are no options for opacity, flow or brush size. Whats wrong and how to I make the brush and pencil eraser erase co

    Eraser tool in Photoshop CS4 acts as if it is transparent when on brush or pencil mode. Block acts like its not transparent at all but there are no options for opacity, flow or brush size. Whats wrong and how to I make the brush and pencil eraser erase completely without having to go over it multiple times?
    It started randomly about two weeks ago and I thought it was a glitch that would just go away. But now I am getting sick of using only the block eraser on one size. Help?

    The easiest thing to start with is to reset the Eraser Tool.
    Right click on the Eraser icon in the tool options bar and then click on Reset Tool.

  • When i press the back of my iphone 4s it make a noise, kind of like a click, is this normal?

    when i press the back of my iphone 4s it make a noise, kind of like a click, is this normal?

    No

  • How to Create Eraser Tool

    Hi,
    I wana create one eraser. I don't know about Eraser Tool. Please tell me the solution. Eraser will be resizable, Which end user can easily erase it's drawing. Please help me.........!

    Here are three threads in which you didn't reply to the responses:
    [http://forums.sun.com/thread.jspa?threadID=5366108]
    [http://forums.sun.com/thread.jspa?threadID=5366123]
    [http://forums.sun.com/thread.jspa?threadID=5367411]
    Do you think that motivates anyone to try to help you?
    db

  • Eraser tool doesn't erase the eraser circle completely like it used to....going nuts here

    Okay....I have been on this problem for a couple of weeks.  Either I have gone mad, or they changed something.
    Simply, I want to take the Eraser tool, a round circle, and erase!  Now, PS wont erase the ENTIRE circle to the edge of the circle (eraser).  I must have done something and have pushed ever button I could thing of to correct this.  It use to be I could place the eraser on something and KNOW exactly where it would begin erasing.  Sigh.  Can anyone help this Forum Noob.  Thanks

    Happy to helps -- and please don't cry. I go to pieces when other people cry.
    Oh, one more thing... to quote from the email boilerplate::
    If the reply answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7012223#7012223and clicking ‘Correct’ below the answer

  • Eraser Tool erases too much

    Not new to Illustrator, but not super proficient either. I've begun to use Illustrator to create technical drawings for patent illustrations.
    When creating contour lines, it'd be great to use the Eraser Tool to make them, but Illustrator's Eraser Tool is heavy-handed. The screengrabs illustrate my point.
    The first image are my contour lines
    The second image is the Eraser Tool erasing... what I'd like to have when it's finished is exactly what is shown in the second image.
    The third image shows the the tool erases too much.
    I've looked around for answers. I've tried expanding the stroked lines as well as using the Path Eraser Tool. Nothing works.
    Any ideas?

    I see what you mean the eraser is not precise, acts like there is a fidelity update after you draw.
    You may want to instead draw a shape with the blob tool,
    The use transparency >> make opacity mask >> and these settings, uncheck clip and invert mask if you blob stroke is black..
    If you double click on the blob tool you can take the fidelity down to .5px, which should stay true enough to the path you draw.

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • HT204266 I erase all application of my iphone 4 with erase restore and now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file i just want my i phone ok and work smoothly as new p

    Hi,
    I erase all application of my iphone 4 with erase restore without any backup & i also lose the product serial number. Now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file I just want my iphone4 ok and work smoothly as like new ipone justlike i bought it at first time. I can't restore it. So Please help me to solv this proble.

    See Here  > without the Backup  >  http://support.apple.com/kb/HT4137

  • I want to give my old iPhone 4 to my grandson to use like an iPod Touch. Wifi only. How do I deactivate my info..so he can buy his own apps. and not have the cloud pushing all of my data to the old phone?

    I want to give my old iPhone 4 to my grandson to use like an iPod Touch. Wifi only. How do I deactivate my info..so he can buy his own apps. and not have the cloud pushing all of my data to my old phone?
    Just turning off Cloud will not prevent him from turning it back on.
    Rignt now, if he uses the App store, iTunes thinks it's talking to me.

    First, turn off iMessage, FaceTime & delete the iCloud account, while your sim is still in the phone. Then: Settings>General>Reset>Erase All Content & Settings. Give it to your grandson & he gat then set it up as he wants.
    Important your turn iMessage & FaceTime off to disassociate the phone from your Apple ID. Apple "claims" to have fixed this with iOS 6.0, but until I can absolutely confirm such, I still recommend you turn all of that stuff off first.

  • HT4628 My iMac loses its connection with my home wi-fi network when it goes into "idle" mode.  That is, if I don't use the Mac for a few minutes, it goes to idle, kind of like sleep. The wi-fi connection disappears and the clock upper right stops working.

    I think it's a Lion problem.  I had this problem with an old Dell True Mobile wireless router, and hoped it would go away with a new Airport Express router.  Same problem.  I checked online and saw a lot of message boards featuring questions from people that suffered the interruption of their wi-fi connection, some with Macbooks others with iMacs like me.  The problem happens when I don't use the computer for a few minutes. It goes into the Idle mode, kind of like sleep.  The connection is severed and the time clock upper right stops.  It's weird.  There was supposedly an Apple update that addressed this issue, so at the Genius bar two days ago I updated to 10.7.3, downloaded and installed the update. Didn't work.  Is it Lion? Is it a wireless card issue?  Very frustrating.  I subitted a genius bar work authorization with another Apple Genius Bar support tech the next day. He ran some tests. Cryptically said he knew that Apple knew about this and was working on a solution but couldn't tell me what it was. Submitted my info and said I'd be contacted by an Apple tech within 48 hours and provided with a link to another download of another update that should "fix" the problem.  I don't know what to do.

    I FINALLY SOLVED THIS ISSUE!!!!
    New routers have "mixed" modes for your network; this means that it will automatically choose the best option between wireless-B, wireless-G and wireless-N network modes. I used to experience this issue using the 2.4 GHz. mixed mode wireless network.
    Thankfully, my router can create 2 networks: a 2.4 GHz. network and a 5 GHz. network.
    When I randomly changed this value to "use only wireless-B and wireless-G" trying to fix an issue with a wi-fi expander, the iMac wi-fi  issue dissapeared! I tried it with wireless-N only, but it didn't work.
    So, finally, I have a 2.4 GHz network with only wireless-B and wireless-G modes which works PERFECT with the iMac, and a 5 GHz. network with a mixed* wireless mode for everything else mode.
    *PD: by "mixed" mode it means that the router will automatically choose between B, G and N network modes as it fits better.

  • How to create an application with a 'Windows' like interface?

    Hi,
    I am trying to create an application with an windows like interface where menu selections need to open bound taskflows in a page/window but i can not get it to work. I did the following
    - i created a page template with a panelStretchLayout
    - added a menuBar with commandMenuItems
    - created a start page based on the template
    - created bound taskflows with page fragments for all menu items
    - placed a dynamic region on the start page which initially shows a taskflow with an empty/blank page fragment
    - change the dynamic region taskflow from every menuitem and added partial triggers on the dynamic region for every menu item
    When i run the application the first empty page fragment is showed correctly but when i select a menu item the correct new page fragment is showed but it keeps showing a loading data .... hint and seems to freeze. So no data is showed while the underlying datacontrols work while using the bc tester.
    Besides this problem i am wondering if i at all am going the right way with this with using a dynamic region? In the final application i will have a total of about 25 menu items over several menus and if they all will be showing in one main dynamic region with partial triggers set to all menu items it may get a bit complex? I saw you can also create a window in a popup which i like even more because it looks like an actual window but this is modal. I would like a bound taskflow to be opened whenever a menu selection is made.
    Any pointers or tips or the solution to not showing data?
    Kind Regards,
    Andre

    Hi Sascha,
    If have not encountered that problem. Are you sure you have a taskflow entry under the executables tag in the page definition of the page which has the dynamic region on it? I have one like this:
    <taskFlow id="dynamicRegion1" taskFlowId="${DynamicRegionBean.dynamicTaskFlowId}" xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
    During the selection of its initial value when it is rendering for the first time it should have the session bean already initialized. My bean looks like this:
    public class DynamicRegion {
    private String taskFlowId = "/WEB-INF/startTF.xml#startTF";
    public DynamicRegion() {
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String feitenTF() {
    taskFlowId = "/WEB-INF/feitenTF.xml#feitenTF";
    return taskFlowId;
    public String themasTF() {
    taskFlowId = "/WEB-INF/themasTF.xml#themasTF";
    return taskFlowId;
    public String feitCategorienTF() {
    taskFlowId = "/WEB-INF/feitCategorienTF.xml#feitCategorienTF";
    return taskFlowId;
    The startTF is the initial taskflow and the other methods are being called from my menu. The dynamic region has the menu items as partial triggers. That is all i did.
    Kind Regards,
    Andre

  • Disable tablet pen pressure for eraser tool in PSE 10?

    Hi, I recently bought PSE 10.
    I have an Intuos 3 Wacom tablet and whenever I switch to the Eraser tool, in the brush preview icon (top left corner) I see this ~ type of a shape with narrow-pointy edges, indicating that the size-pen-pressure feature is on.
    This is always true, even when I switch off all the per-pressure options via the Brush tool.
    Can anyone hint how to control or at-least disable the pen-pressure feature while in the Eraser tool?
    Thank you.

    One way would be to use the Basic Brushes which are not set for any pressure functions by default.
    Or if you need a special brush you could save the brush without any pressure settings with the brush tool selected
    and those settings should carry over for the eraser tool.
    Also, you can set the mode to clear with the brush tool and that will act like the eraser tool set on the brush mode.

Maybe you are looking for