[android-developers] Re: How to prematurely stop a long-running SQLite query?

2009-09-29 Thread bseib
Ok. Can you describe more about your set of words. Are they all single words? how many distinct words are there? what is the distribution of word lengths? or are they phrases rather than words? Will the size of this list change? -broc On Sep 28, 11:17 pm, mjc147 westmead...@yahoo.co.uk

[android-developers] Re: How to invert colors within a region of a bitmap

2009-07-21 Thread bseib
You can use a ColorMatrix in your paint brush to translate the RGBA values of your image. Here is a way of changing the hue 180 degrees (inverting color only), but preserving lightness and saturation: Canvas c = new Canvas(destBitmap); Paint p = new Paint(); float[] mx = { 0.0f, 0.5f, 0.5f,

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-07-17 Thread bseib
Max, I also was trying to crop my preview to show it in a smaller space. But it would cram the whole image into the smaller view I created. I studied some of the android source code, tried and failed at many remedies, and finally settled on a tacky compromise: 1) I created a SurfaceView that