Search:

Type: Posts; User: JavaInProgress

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    8,114

    Re: Issues with undo functions

    that makes sense... man I'm slipping. So if I wanted to put an actual unique bitmap in each slot in the array rather than only the reference, what should I do? something like...
  2. Replies
    3
    Views
    8,114

    Issues with undo functions

    I'm trying to make a redo feature for my app, but I can't figure out what is wrong :/ The idea is to be able to undo up to 10 times, and each time you make a new modification to the image (when you...
  3. Replies
    7
    Views
    1,672

    Re: paint brush not leaving trail?

    I was planning on a combo of the two. It would remember the last 10 or so modifications, then when a new modification is made, the last in the series is permanently added to the canvas.
  4. Replies
    7
    Views
    1,672

    Re: paint brush not leaving trail?

    ...By slightly changing the graphic each time a touchEvent is invoked, then displaying it? Wait, do all graphics remember the previous points and then display them like that?
  5. Replies
    7
    Views
    1,672

    Re: paint brush not leaving trail?

    After the user starts drawing for a while, won't it need more and more resources to remember all the points, and slow it down?
  6. Replies
    7
    Views
    1,672

    paint brush not leaving trail?

    Hey, I'm new to android, and I just started fiddling with some simple example code I found online to get some practice. I found some code that has a red dot follow your finger, but I'd like to make...
  7. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    Well, I got it to work! :) Thanks so much for all the help. The issue was that by drawing an image, all the transparency was being filled. The solution was to draw the painted image on the component,...
  8. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    The only thing in the top layer is just the text. Shouldnt the rest of the top layer be transparent already?
  9. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    yes, but then the image (bottom layer) will have the text in it. the goal was to display both layers, but keep them separate so that I can save the bottom layer without having the top layer being...
  10. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    there is another layer behind it that lets you use the mouse to draw. The issue is this bottom layer isn't visible through the top layer with the text. the goal is to be able to paint on the bottom...
  11. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    Trimmed the fat out
  12. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    I swapped the code for paintListener to print a sentence in the middle instead of using images. I might have done that after you ran the version that used images. try and use the paintListener class...
  13. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    The new code above now compiles
  14. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    Ok, I've been working on it for a while now. I've been able to get past your step 3, but I'm stuck again. I have two graphics objects that are being edited offscreen, but when I use paintComponent()...
  15. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    I'm not sure what you mean. Are you saying to cast a Graphics2D onto a BufferedImage?

    Edit:
    Ok, here is what I've changed. No compilation errors, but the image won't appear:
    BufferedImage...
  16. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    From what I've found so far, it seems like I will want to create a BufferedImage that corresponds to each Graphics2D object (I think).
    BufferedImage layerOneImage = new...
  17. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    Thanks for the link! As for the buffering method, that's the same concept as what I did for the prototype in my link. I just don't know how to implement it in java :confused:
  18. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    1) the 'layer' that I'm referring to would be the equivalent to a transparency slide that is being painted on. If you were to take these and then stack them on top of each other, you would be able to...
  19. Replies
    26
    Views
    2,728

    Re: Help with editing offscreen graphics

    There is no compilation error, but it isn't doing what I would like it to do. Currently, if your mouse is dragged, it will draw a line from your previous position to your current position with a...
  20. Replies
    26
    Views
    2,728

    Help with editing offscreen graphics

    I'm starting a new paint project to get some experience with java.:confused: I've been working with Processing for a while, and I'm struggling to transition. :-s The goal is to make a program in...
Results 1 to 20 of 20