Results 1 to 2 of 2

Thread: Modified Pixels

  1. #1
    monkey04 is offline Member
    Join Date
    Jan 2008
    Rep Power

    Question Modified Pixels

    Hey everyone,

    I'm trying to write a networked drawing program to allow users to draw with each other in a realtime, shared, mspaint-like environment. Right now the project is just in its initial stages and I'm trying to set up a way for the application to store the image internally and handle updates to it. What I'm thinking is that each session will have it's own canvas which will be stored on the server, probably as a BufferedImage object. I want the clients to have access to the standard Graphics API though so I'd like them to have their own local BufferedImages which they can draw on... unless there's a way to just access the Graphics object for the image over the network and run commands on it directly? :confused: So that's one problem I guess. The other part though is that I want to have a way for the server to send it's image data to the clients so that everyone in the session is on the same page. I'm afraid that if i try to send a copy of the entire image every time the image is updated (which in theory would be after every pixel is drawn with something like a pen tool), it'll take up too much bandwith. So, what i'm looking for is a way to extend BufferedImage maybe in a way that it can realize which pixels have been modified and then I can just send individual pixel data (maybe in small groups though) to the clients which can just use a setPixel method to make the appropriate updates. So that's my story :eek: Any advice, suggestions, or answers would be really appreciated! Thanks everyone :D

  2. #2
    strati1991 is offline Member
    Join Date
    Mar 2009
    Rep Power


    aren't you able to send the server commands like "blue rect painted(10,10,20,30)" or something like this and the server execute this command on his BufferedImage and send it to the clients?

Similar Threads

  1. Replies: 0
    Last Post: 04-04-2008, 03:45 PM
  2. Checking of file was modified on the server
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-02-2008, 08:18 PM
  3. Blurring pixels
    By tim in forum New To Java
    Replies: 0
    Last Post: 01-01-2008, 03:06 PM
  4. Counting Pixels
    By shaungoater in forum Java 2D
    Replies: 5
    Last Post: 11-29-2007, 06:51 PM
  5. Deleting certain image pixels..
    By Brightside in forum New To Java
    Replies: 1
    Last Post: 05-22-2007, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts