[android-beginners] Re: Get an array of colors from an image

2009-11-02 Thread Vootog andarena
hi if you are using bitmap, use an integer array to store the bitmap. use bitmap.getPixel() to get the corresponding bitmap in integer array. By using bitwise rotation operation, we will get RGB values. (Also byte array can be used). See the code below. int[] pix = new

[android-beginners] Re: Get an array of colors from an image

2009-10-31 Thread Farproc
Bitmap bmp = ImageView.getDrawable().getBitmap(); Then loop through the bitmap with Bitmap.getPixel() On 10月31日, 上午3时50分, Liviu Ungureanu smartli...@gmail.com wrote: Hi all! I just want to ask if is possible to get the array with colors from a ImageView? Thank you! -- You received this

Re: [android-beginners] Re: Get an array of colors from an image

2009-10-31 Thread Liviu Ungureanu
Thank you! -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options,