Re: [sdljava-users] Anyone using get/setPixelDataXX()?
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-07-08 14:55:48
|
Greetings, I have checked in code which adds the following methods to SDLSurface: public long[] getPixelData32() public int[] getPixelData16() public short[] getPixelData8() public void setPixelData32(long[] pixelData) public void setPixelData16(int[] pixelData) public void setPixelData8(short[] pixelData) Cheers, -Ivan/ S. Meslin-Weber wrote: >Hi everyone, > >I'm cleaning up some code in Odonata and in the sdljava provider I've >found that I use get/setPixelData32(long[]). Would it be possible to >rationalise the types used for these methods? Does anyone still use >them? > >long[] 64 bit colour data >int[] 32 ... >short[] 16 ... >byte[] 8 ... > >Essentially it'd mean changing the signatures for the get/set methods to >match the bit sizes they're operating with. > >I've seen the gradual move to using ByteBuffer and Buffers in general... >Odonata intends to work with JVM versions 1.1+ so those classes wouldn't >necessarily be available on those targets :) > >Cheers, > >Steph > > > |