Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008, 08:05 AM
Member
 
Join Date: Jan 2008
Posts: 3
monkey04 is on a distinguished road
Send a message via AIM to monkey04 Send a message via MSN to monkey04
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? 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 Any advice, suggestions, or answers would be really appreciated! Thanks everyone
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the last modified date of a file from a java program Java Tip java.io 0 04-04-2008 03:45 PM
Checking of file was modified on the server Java Tip Java Tips 0 03-02-2008 08:18 PM
Blurring pixels tim New To Java 0 01-01-2008 03:06 PM
Counting Pixels shaungoater Java 2D 5 11-29-2007 06:51 PM
Deleting certain image pixels.. Brightside New To Java 1 05-22-2007 10:21 AM


All times are GMT +3. The time now is 04:11 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org