Results 1 to 3 of 3
  1. #1
    TiagoCT is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default Graphics: Buffered Array as Video Memory

    Hello everyone.

    I'm familiar with Java's syntax, but I've only been using it for
    console applications.

    I would like to start some graphics programming, although, I
    would like to do everything on my own with pixel control.

    If possible, please help me generate some code that does the
    following:
    - Creates an empty window with certain dimension. That dimension
    should be provided by 2 int variables.
    - Create a "buffered" array. This is the tricky part. The array should
    have the same length as the dimensions for example:
    int[][] screen = new int[x.var][y.var]
    and each modification I do to the array should "instantaneously"
    modify the windows previously created.
    The point of doing this is that I want to use the array as if it was
    a high level Video Memory Array.
    Is it possible?

    Also, please tell me how do I give colors to pixels. Multiple arrays can
    be created, no problem with that.

    Also, are there any pre-programmed Line routines or something?

    Thank you.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    6

    Default

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    TiagoCT is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Receive uploaded image / video (byte array) from j2me on jsp.HOW???
    By angelicsign in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-29-2010, 06:21 PM
  2. Array memory allocation
    By number5isalive in forum Advanced Java
    Replies: 8
    Last Post: 10-14-2009, 08:04 AM
  3. Replies: 2
    Last Post: 08-21-2008, 07:33 PM
  4. Graphics Memory
    By j2se.j2me in forum CLDC and MIDP
    Replies: 0
    Last Post: 05-07-2008, 06:08 AM
  5. Adding graphics to array
    By romina in forum Java 2D
    Replies: 1
    Last Post: 08-01-2007, 01:45 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
  •