[5855] in java-interest

home help back first fref pref prev next nref lref last post

some graphics methods they forgot....

daemon@ATHENA.MIT.EDU (dc)
Thu Feb 29 14:16:19 1996

Date: Thu, 29 Feb 1996 05:11:27 -0800
To: java-interest@java.sun.com
From: dc <dc@symbolicsoft.com>

Been frustrated trying to do a couple of things, maybe someone can share
some shortcuts or long workarounds....

copying one image to another
----------------
For a sprite routine, I need to copy a small area from one 'image' to a
buffer, without scaling. Something like:

        image.copy( src_x, src_y, buf_x, buf_y, w, h);

A method exists for this within the _same_ image, but not across images. OK,
sure the devices _could_ be incompatible blah blah, but...
The workaround seems to be to draw the _whole_ larger image into the small
patch? Not sure if clipping the large source would speed things up -
hopefully clipping doesn't affect 'source' images.

Reading the color of a pixel on-screen?
----------------
Isn't there a simple image.getPixel(x,y) ??
Don't quite understand how to use 'pixelgrabber' and that house of cards,
but that doesn't seem directly what I need. Or should I persevere there?

tia for any hints.

dc
___________________________________________________________________

      /\    dave 'dc' collier
     /_/\     Symbolic Software, Inc.
    /_\_ \      dc@SymbolicSoft.com
   /___/__\       tel (415) 546 1295
 
         use your Head or lose your Mind!  http://www.BurnCycle.com
 


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post