`
lukew
  • 浏览: 52050 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
The code sample below describes how to play two sounds at the same time. This feature is supported by the Sony Ericsson JP-5 platform and onwards. Only one wav file can be played simultaniously but several midi files might be played at the same time. The number of existing players is only limited by ...
Creating an image from an array of data is an easy task, but to create a byte-array of data from an image is a little more complicated. But it's required if you want to send a modified image to a server. To create a byte-array of data from an image, we can use the getRGB(..) method in the image clas ...
This tip describes how to change the alpha value of an image to make it appear blended. There's also an example MIDlet with source code. In MIDP 2.0 there's a new method in the Image class, getRGB(...) that will get all Alpha, Red, Green, Blue (ARGB) values from the image to an int array. We can use ...
To increase the performance of your Java™ application when reading from an InputStream, there are a few key areas to look into. If possible, don't make any reallocations of memory. Allocate the input buffer once. Let the Java™ VM do the bulk of the reading, i.e. read data in big chunks. Some coding e ...
Global site tag (gtag.js) - Google Analytics