Re: [sdljava-users] Anyone using get/setPixelDataXX()?
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-07-19 22:37:13
|
Greetings, I've changed the get/setPixelData32 methods to use int[] instead of long[]. Please let me know if this is working properly. I didn't have a chance to test it... If we find this to be good I'll adjust the other two methods in the same way. Also I saw one thing that could be optimized which I will also do. So we should end up with: get/setPixelData8 --> byte[] get/setPixelData16 --> short[] get/setPixelData32 --> int[] Nothing else anywhere will be affected by this. Let me know any comments... -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 > > > |