Re: [sdljava-users] Anyone using get/setPixelDataXX()?
Status: Beta
Brought to you by:
ivan_ganza
From: S. Meslin-W. <st...@ta...> - 2005-07-12 16:55:26
|
Hi Ivan, Thanks for the additions! Is there a reason for going with long[] for 32bit instead of int[] ? Thanks, Steph On Fri, Jul 08, 2005 at 10:55:19AM -0400, Ivan Z. Ganza wrote: > Greetings, >=20 > I have checked in code which adds the following methods to SDLSurface: >=20 > public long[] getPixelData32() > public int[] getPixelData16() > public short[] getPixelData8() >=20 > public void setPixelData32(long[] pixelData) > public void setPixelData16(int[] pixelData) > public void setPixelData8(short[] pixelData) >=20 > Cheers, > -Ivan/ >=20 > S. Meslin-Weber wrote: >=20 > >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 > > > >=20 > > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen= ing > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by H= P, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Stephane Meslin-Weber Email: st...@ta... Senior Software Engineer Web: http://odonata.tangency.co.uk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |